Pagini recente » Diferente pentru problema/triburi intre reviziile 9 si 10 | Cod sursa (job #2383303) | Cod sursa (job #2283768) | Cod sursa (job #392180) | Cod sursa (job #763133)
Cod sursa(job #763133)
program textsdfg;
var f,g:text;
c:char;
s,p:integer;
begin
assign(f,'text.in');reset(f);
assign(g,'text.out');rewrite(g);
while not eof(f) do begin
read(f,c);
if pos(c,'qwertyuioplkjhgfdsazxcvbnm')>0 then begin s:=s+1; t:=0;end
else t:=1;
if (s>0)and(t=1) then p:=p+1;
end;
write(g,trunc(s/p));
close(f);
close(g);
end.