Cod sursa(job #1008136)
Utilizator | Data | 10 octombrie 2013 12:16:50 | |
---|---|---|---|
Problema | Text | Scor | 90 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <fstream>
using namespace std;
ifstream f("text.in");
ofstream g("text.out");
int c,l,p;
char x;
int main()
{
while(f.get(x))
if(x>='A'&&x<='z')
l++,p=1;
else if(p==1)
p=0,c++;
g<<l/c;
return 0;
}