Cod sursa(job #393567)

Utilizator tiger_10Dutescu Radu Alin tiger_10 Data 9 februarie 2010 18:00:33
Problema Text Scor 10
Compilator fpc Status done
Runda Arhiva de probleme Marime 0.4 kb
var f,g:text;
      c:char;
      i,k,l:longint;
begin
        assign(f,'text.in');
        reset(f);
        k:=1;
        l:=0;
        while not eof(f) do begin
                read(f,c);
                if c=' ' then inc(k);
                inc(l)
                end;
        close(f);
        assign(g,'text.out');
        rewrite(g);
        writeln(g,l div k);
        close(g);
end.