Pagini recente » Cod sursa (job #103739) | Cod sursa (job #337679) | Cod sursa (job #2422333) | Cod sursa (job #1091698) | Cod sursa (job #1700527)
#include <fstream>
using namespace std;
ofstream fout ("text.out");
ifstream fin ("text.in" );
int cuv,lungime,stop = 0;
char s[ 65000000 ];
int main()
{
fin.get( s , 1000000000);
for(int i = 0 ; i < 30000000 ; i++ )
{
int a = s[ i ];
if( (65 <= a && a <= 90) || ( 97 <= a && a <= 122) )
{
if( stop == 0)
{
stop++;
cuv++;
}
lungime++;
}
else
{
if( stop == 1)
{
stop = 0 ;
}
}
}
fout<<lungime / cuv;
}