Cod sursa(job #499011)
Utilizator | Data | 8 noiembrie 2010 12:28:26 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <fstream>
#include <cstring>
using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");
int main()
{
int a[20], n, c;
while ( fin >> a )
{
c++;
n += strlen(a)
if ( strlen(a) == 1 && a[0] == '-' )
n--, c--;
}
fout << n/p;
}