Pagini recente » Cod sursa (job #800185) | Cod sursa (job #953291) | Diferente pentru happy-coding-2007/clasament intre reviziile 4 si 3 | Cod sursa (job #749389) | Cod sursa (job #750615)
Cod sursa(job #750615)
var k,i,n,h:integer;f,g:text;x:char;
begin
assign(f,'text.in');reset(f);
assign(g,'text.out');rewrite(g);
k:=0;h:=0;i:=0;
while not eof(f) do
begin
read(f,x);
n:=ord(upcase(x));
if (n>=65)and(n<=90) then begin
i:=i+1;
if k=0 then inc(h);
k:=1;end
else k:=0;
end;
writeln(g,i div h );
close(f);
close(g);
end.