Pagini recente » Cod sursa (job #3212979) | Monitorul de evaluare | Cod sursa (job #746689) | Cod sursa (job #1187427) | Cod sursa (job #162583)
Cod sursa(job #162583)
const litere:set of char=['a'..'z','A'..'Z'];
var f:text; c:char; n,t:longint; inceput:boolean;
begin
assign(f,'text.in');reset(f);
repeat
read(f,c);
if (c in litere) and not(inceput)then begin
inc(n);
inc(t);
inceput:=true;
end
else if inceput and (c in litere) then inc(T)
else inceput:=false;
until eof(f);
close(f);
assign(f,'text.out');
writeln(f,t div n);
close(f);
end.