Pagini recente » Monitorul de evaluare | Borderou de evaluare (job #2665483) | Cod sursa (job #457058)
Cod sursa(job #457058)
var n,k:longint;
s:char;
cuv:boolean;
f,g:text;
begin
assign(f,'text.in');
reset(f);
assign(g,'text.out');
rewrite(g);
n:=0;
k:=0;
cuv:=false;
while not eof(f) do
begin
read(f,s);
if ((s>='a') and (s<='z')) or ((s>='A') and (s<='Z')) or ((s>='0') and (s<='10')) then
begin
cuv:=true;
inc(n);
end
else
if cuv=true then
begin
cuv:=false;
inc(k);
end;
end;
writeln(g,n div k);
close(f);
close(g);
end.