Pagini recente » Cod sursa (job #145467) | Cod sursa (job #2000830) | Cod sursa (job #3199546) | Cod sursa (job #3247540) | Cod sursa (job #287064)
Cod sursa(job #287064)
Utilizator |
Vlad VLD Vlad2008 |
Data |
24 martie 2009 15:35:18 |
Problema |
Text |
Scor |
40 |
Compilator |
fpc |
Status |
done |
Runda |
aa |
Marime |
0.38 kb |
program VLD4EvEr;
var f,g:text;
s:string;
i,j,m,n:longint;
begin
assign(f,'text.in');reset(f);
assign(g,'text.out');rewrite(g);
readln(f,s);
n:=0;
m:=0;
for i:=1 to length(s) 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);
close(f);
close(g);
end.