Cod sursa(job #768479)
| Utilizator | Data | 16 iulie 2012 22:46:07 | |
|---|---|---|---|
| Problema | Text | Scor | 0 |
| Compilator | fpc | Status | done |
| Runda | Arhiva de probleme | Marime | 0.59 kb |
program textu;
var fi,fo:text;
c:char;
s1,s2:longint;
begin
assign(fi,'text.in');reset(fi);
assign(fo,'text.out');rewrite(fo);
while not eof(fi) do begin
read(fi,c);
if (c>='a') and(c<='z') or (c>='A') and (c<='Z') then begin inc(s1);
while (c>='a') and (c<='z') or (c>='A') and (c<='Z') do begin
inc(s2);
read(fi,c);
end;
end;
end;
writeln(fo,s2 ,s1);
close(fi);close(fo);
end.