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