Pagini recente » Cod sursa (job #3160838) | Cod sursa (job #3167841) | Cod sursa (job #2949873) | Cod sursa (job #1626385) | Cod sursa (job #340385)
Cod sursa(job #340385)
var c:char;
b:boolean;
t:text;
leng,cuv:int64;
function adevarat(c:char):boolean;
begin
adevarat:=((ord(c)>64)and(ord(c)<91))or((ord(c)>96)and(ord(c)<123));
end;
begin
assign(t,'text.in'); reset(t);
b:=true;
while not(eof(t)) do begin
while not(eoln(t)) do begin
read(t,c);
if adevarat(c) then begin
inc(leng);
if b then inc(cuv);
b:=false;
end else b:=true;
end;
readln(t);
end;
close(t);
assign(t,'text.out'); rewrite(t);
writeln(t,(leng div cuv));
close(t);
end.