Pagini recente » Diferente pentru problema/spargere intre reviziile 7 si 6 | Diferente pentru problema/oxificare intre reviziile 9 si 10 | Undo2 | Cod sursa (job #1175692) | Cod sursa (job #1844146)
#include <cstdio>
#include <algorithm>
int a[1001], b[1001];
using namespace std;
int main()
{
freopen( "text.in", "r", stdin );
freopen( "text.out", "w", stdout );
int l=0, ll, cuv=0;
char c;
c=fgetc(stdin);
while( c!='\n' )
{
ll=l;
while( ('a'<=c && c<='z') || ('A'<=c && c<='Z') )
{
l++;
c=fgetc(stdin);
}
if( l>ll )
cuv++;
c=fgetc(stdin);
}
printf( "%d", l/cuv );
return 0;
}