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