ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

1293
Posted by Надежда 29 Jan 2005 20:50
I write:
Var f,ff:Text;
    A,B,N:byte; R:Longint;
Begin
  Assign (f,'input.txt');
  Reset (f);
  Read (f,N,A,B);
  close(f);
  r:=2*A*B*n;
  Assign (ff,'output.txt');
  Rewrite (ff);
  Write (ff,r);
  close (ff);
end.
Why wrong answer? Help me, please...
Re: 1293
Posted by Victor Barinov (TNU) 29 Jan 2005 22:43
Try to read and write not to files. Use standart stream(read from keyboard, write to monitor). Judge system automaticaly change standart stream to files.