Pagini recente » Cod sursa (job #3140623) | Cod sursa (job #278274) | Cod sursa (job #3271250) | Cod sursa (job #2197565) | Cod sursa (job #34219)
Cod sursa(job #34219)
var f,g:text;
c,lit:char;
n,l:longint;
begin
assign(f,'text.in');
assign(g,'text.out');
reset(F);
rewrite(G);
n:=0;
l:=0;
while not eoln(F) do
begin
read(f,C);
if c in(['a'..'z']+['A'..'Z']) then inc(N)
else if lit in (['a'..'z']+['A'..'Z']) then inc(L);
lit:=c;
end;
if lit in (['a'..'z']+['A'..'Z']) then inc(L);
writeln(g,n div l);
close(F);
close(G);
end.