Pagini recente » Diferente pentru adobe-code-pandas/clasament intre reviziile 14 si 15 | Cod sursa (job #1941683) | Cod sursa (job #2031140) | Cod sursa (job #2840300) | Cod sursa (job #128631)
Cod sursa(job #128631)
#include<fstream.h>
#include<string.h>
int main(){
char c;
int s=0,lung,ok,y=0;
ifstream f("text.in");
ofstream g("text.out");
while(!f.eof())
{ f.get(c);
ok=1;
lung=0;
while(ok!=0)
if((c>='a'&&c<='z')||(c>='A'&&c<='Z'))
{ lung++;f.get(c);}
else ok=0;
if(lung!=0) {s+=lung;y++;}
}
g<<(int)s/y;
return 0;
}