Cod sursa(job #1091207)
Utilizator | Data | 25 ianuarie 2014 14:22:49 | |
---|---|---|---|
Problema | Text | Scor | 100 |
Compilator | fpc | Status | done |
Runda | Arhiva de probleme | Marime | 0.76 kb |
var c:char;
l, cuv, k:longint;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
l:=0; cuv:=0; k:=0;
while not eof do
begin
read(c);
if (c in ['a'..'z','A'..'Z']) then
begin
inc(l);
if k=0 then
begin
inc(cuv);
k:=1;
end;
end
else k:=0;
end;
writeln(l div cuv);
close(input);
close(output);
end._