Pagini recente » Cod sursa (job #970062) | Cod sursa (job #1358269) | Cod sursa (job #46283) | Cod sursa (job #2803234) | Cod sursa (job #584644)
Cod sursa(job #584644)
var l,cuv,s:longint;
c:char;
v:0..1;
begin
assign(input,'text.in');reset(input);
assign(output,'text.out');rewrite(output);
l:=0;
cuv:=0;
s:=0;
while not eoln(input) do begin
read(c);
if upcase(c) in ['A'..'Z'] then begin v:=1; inc(l);end
else
if (l<>0)and(v=1) then begin inc(cuv);v:=0;end;
end;
s:=l div cuv;
write(s);
close(output);
end.