Pagini recente » Cod sursa (job #547137) | Cod sursa (job #2830041) | Cod sursa (job #994187) | Cod sursa (job #1915968) | Cod sursa (job #547922)
Cod sursa(job #547922)
var t : text;
b : boolean;
c : char;
i,j : integer;
begin
assign(t,'text.in');reset(t);b:=false;
while not(eoln(t))do begin
read(t,c);
if upcase(c)in['A'..'Z']then begin b:=true;
inc(i);
end
else if b then begin inc(j);b:=false;end;
end;close(t);assign(t,'text.out');rewrite(t);
if j<>0 then writeln(t,i div j)
else writeln(t,0);close(t);
end.