Pagini recente » Cod sursa (job #2766903) | Cod sursa (job #2229592) | Cod sursa (job #922422) | Cod sursa (job #2583686) | Cod sursa (job #711773)
Cod sursa(job #711773)
var s:char; p,k:longint; ok:boolean;
f,g:text;
begin
assign(f,'text.in');reset(f); ok:=false;
assign(g,'text.out');rewrite(g);
while not eoln(f) do begin
read(f,s);
if ((s>='A')and(s<='Z'))or((s>='a')and(s<='z')) then begin inc(k); ok:=true;end
else begin if ok=true then begin inc(p);ok:=false;end;end;end;
write(g,k div p);
close(f);
close(g);
end.