Cod sursa(job #703141)
| Utilizator | Data | 2 martie 2012 11:08:38 | |
|---|---|---|---|
| Problema | Text | Scor | 30 |
| Compilator | fpc | Status | done |
| Runda | Arhiva de probleme | Marime | 0.35 kb |
var cuvinte,lungime:longint;
c:char;
f:text;
begin
assign(f,'text.in');
reset(f);
repeat
read(f,c);
if (c in ['a'..'z']) or (c in ['A'..'Z']) then lungime:=lungime+1
else cuvinte:=cuvinte+1;
until eoln(f);
close(f);
assign(f,'text.out');
rewrite(f);
write(f,lungime div cuvinte);
close(f);
end.