Pagini recente » Diferente pentru problema/multimi3 intre reviziile 7 si 6 | Cod sursa (job #712908) | Cod sursa (job #355424) | Diferente pentru problema/ec intre reviziile 2 si 3 | Cod sursa (job #1452986)
var cuv,lit:integer;
f,g:text;
ok:boolean;
c:char;
begin
assign(f,'text.in');reset(f);
assign(g,'text.out');rewrite(g);
ok:=false; lit:=0;cuv:=0;
while not eoln(f) do begin
read(f,c);
if (('a'<=c) and (c<='z'))or(('A'<=c) and (c<='Z')) then begin
lit:=lit+1;
ok:=true;
end
else
begin
cuv:=cuv+1;
ok:=false;
end;
end;
write(g,round(lit/cuv));
close(f); close(g);
end.