Pagini recente » Cod sursa (job #2536423) | Istoria paginii runda/christmas_time | Cod sursa (job #912510) | Cod sursa (job #2272903) | Cod sursa (job #178710)
Cod sursa(job #178710)
const m:set of char=['a'..'z','A'..'Z'];
var nrl,nrc:int64;
f:text;
c,x:char;
begin
assign(f,'text.in');reset(f);
nrl:=0;
nrc:=0;
x:='-';
while not eof(f) do begin
read(f,c);
if c in m then inc(nrl)
else if x in m then inc(nrc);
x:=c;
end;
close(f);
assign(f,'text.out');rewrite(f);
write(f,trunc(nrl/nrc));
close(f)
end.