Pagini recente » Diferente pentru problema/matrita intre reviziile 42 si 32 | Cod sursa (job #1858785) | Cod sursa (job #1488543) | Cod sursa (job #2039250) | Cod sursa (job #763132)
Cod sursa(job #763132)
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 s:=s+1
else if (s>0)and((c=' ')or(c='-')or(c=''')) then p:=p+1;
end;
p:=p+1;
write(g,trunc(s/p));
close(f);
close(g);
end.