Pagini recente » Cod sursa (job #723919) | Cod sursa (job #69614) | Istoria paginii preoni-2008/clasament/runda-4/5-8 | Cod sursa (job #909919) | Cod sursa (job #151141)
Cod sursa(job #151141)
program textcuv;
const
alfabet=['a'..'z','A'..'Z'];
var
f:text;
ch:char;
c,l:longint;
r:real;
begin
assign(f,'text.in');
reset(f);
read(f,ch);
while not eoln(f) do
begin
while not (ch in alfabet) do
read(f,ch);
if not eoln(f) then
inc(c);
while ch in alfabet do
begin
read(f,ch);
inc(l);
end;
end;
close(f);
assign(f,'text.out');
rewrite(f);
write(f,int(l/c));
close(f);
end.