Pagini recente » Borderou de evaluare (job #3288281) | Cod sursa (job #1511388) | Diferente pentru utilizator/davidnane intre reviziile 1 si 2 | Cod sursa (job #2620493) | Cod sursa (job #1039184)
var c:char;
lungime, nr:longint;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
lungime:=0; nr:=0;
while not eof do
begin
read(c);
if (not(c in ['a'..'z','A'..'Z'])) then inc(lungime)
else if lungime>0 then inc(nr);
end;
writeln(lungime/nr);
close(input);
close(output);
end.