Pagini recente » Cod sursa (job #2689943) | Cod sursa (job #2792918) | Diferente pentru implica-te/arhiva-educationala intre reviziile 223 si 203 | Cod sursa (job #3241528) | Cod sursa (job #287360)
Cod sursa(job #287360)
program VLD4EvEr;
var f,g:text;
s:string;
i,m,n:longint;
begin
assign(f,'text.in');reset(f);
assign(g,'text.out');rewrite(g);
n:=0;
m:=0;
while not(eof(f)) do
begin
readln(f,s);
s:=s+' ';
for i:=1 to length(s)-1 do begin
if s[i] in ['a'..'z','A'..'Z'] then n:=n+1;
if (s[i] in ['a'..'z','A'..'Z']) and (not(s[i+1] in ['a'..'z','A'..'Z'])) then m:=m+1;
end;
writeln(g,n DIV m);
end;
close(f);
close(g);
end.