Cod sursa(job #193706)
Utilizator | Data | 6 iunie 2008 15:02:53 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include<fstream.h>
using namespace std;
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);
return 0;
}