Cod sursa(job #547930)

Utilizator autoplayerBerendea autoplayer Data 6 martie 2011 20:27:32
Problema Text Scor 70
Compilator fpc Status done
Runda Arhiva de probleme Marime 0.5 kb
var t : text;
    b : boolean;
    c : char;
    i,j : integer;

begin
assign(t,'text.in');reset(t);b:=false;
while not(eof(t))do begin
  if eoln(t) then readln(t);
  read(t,c);
  if upcase(c)in['A'..'Z']then begin b:=true;
                                     inc(i);
                                     end
                          else if b then begin inc(j);b:=false;end;
  end;close(t);assign(t,'text.out');rewrite(t);
if j<>0 then writeln(t,i div j)
        else writeln(t,0);close(t);
end.