Pagini recente » Cod sursa (job #2226809) | Cod sursa (job #340117) | Cod sursa (job #886734) | Cod sursa (job #364231) | Cod sursa (job #45055)
Cod sursa(job #45055)
{
Problema text
}
Program text;
Const multime = ['a'..'z','A'..'Z'];
Var k : char;
lt, nrc : int64;
Begin
Assign( input, 'text.in' );
Reset( input );
read( k );
While not (k in multime) do read( k );
nrc := 0;
lt := 0;
While not eof do
Begin
While (k in multime) and (not eof) do
Begin
read( k );
lt := lt+1;
End;
nrc := nrc+1;
While not ( k in multime ) and (not eof) do read( k );
End;
Close( input );
If nrc =1 then lt := lt+1;
Assign( output, 'text.out' );
Rewrite( output );
if lt > 0 then Writeln( lt div nrc ) else Writeln( 0 );
Close( output );
End.