Pagini recente » winter-challenge-2008/runda-2/solutii/sn | Profil Popescu_Ovidiu_Ioan_322CB | Cod sursa (job #1367906) | Cod sursa (job #1878102) | Cod sursa (job #663003)
Cod sursa(job #663003)
#include<cstdio>
using namespace std;
int nrcuv=0,lit=0;
char x;
bool ok;
int main()
{
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
while(!feof(stdin)) {
scanf("%c",&x);
if( (x>='a' && x<='z') || (x>='A' && x<='Z')){
ok=1;lit++;}
else
if(ok)
nrcuv++;
}
lit++;
if(ok) nrcuv++;
printf("%d",lit/nrcuv);
return 0;
}