ShowStopper728's blog

By ShowStopper728, history, 7 years ago, In English

I am participating virtually in ACM Jordan 2017 . the submitting process should be done by sending the file of the code . it the first time that I submit using this way . I am using C# and whatever the problem that I submit for it gives me runtime error . anyone has a solution for this problem ?

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
7 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

The problem setter said : "Note that your solution should read the input from file and write to the standard output. You can find the input file name below the title of the problem."

See

»
7 years ago, # |
  Vote: I like it +3 Vote: I do not like it
System.IO.StreamReader file = new System.IO.StreamReader("input.txt");  
int xa = Int.Parse(file.ReadLine());
file.Close();