Pagini recente » Cod sursa (job #24774) | Cod sursa (job #2319508) | Cod sursa (job #1235309) | Cod sursa (job #1370400) | Cod sursa (job #342304)
Cod sursa(job #342304)
var t:text;
i,s,nrl,nrc,l:longint;
c:char;
begin
nrc:=0;
nrl:=0;
assign(t,'text.in'); reset(t);
while not(eof(t)) do
begin
l:=0;
read(t,c);
while ( ((65<=ord(c)) and (ord(c)<=90)) or ((97<=ord(c)) and (ord(c)<=122))) do
begin
l:=l+1;
read(t,c);
end;
if l<>0 then
begin
nrc:=nrc+1;
nrl:=nrl+l;
end;
end;
assign(t,'text.out'); rewrite(t);
writeln(t,trunc(nrl/nrc));
close(t);
end.