Cod sursa(job #193705)
Utilizator | Data | 6 iunie 2008 14:57:28 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include<fstream.h>
#include<stdio.h>
#include<conio.h>
int main(){
long m;
char x[200];
long cuv,lit;
ifstream f ("text.in");
ofstream o ("text.out");
f>>x;
for(int i=0;i<strlen(x);i++)
if(x[i]==' ')
cuv++;
else lit++;
o<<abs(lit/cuv);
getch();
return 0;
}