Cod sursa(job #486)
Utilizator | Data | 11 decembrie 2006 13:13:54 | |
---|---|---|---|
Problema | Text | Scor | 70 |
Compilator | fpc | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
program p1;
var n,i,j,k:qword;
c:char;
f:text;
begin
assign(f,'text.in');
reset(f);
n:=0;
j:=0;
k:=1;
repeat
read(f,c);
i:=ord(upcase(c));
if (i<65)or(i>90) then k:=0
else begin
n:=n+1;
if k=0 then begin
j:=j+1;
k:=1;
end;
end;
until eof(f);
close(f);
assign(f,'text.out');
rewrite(f);
write(f,n div j);
close(f);
end.