aliawadhi's blog

By aliawadhi, history, 5 years ago, In English

 I tried to submit for this question, but it seems that there is not answer.txt file to compare to and the judgement was "Denial by judgement". I thought that maybe my code is wrong, so I copied another code that previously got an "Accepted" answer for this question and submitted it. However, the output was still "Denial by judgement". Can you please help me out with this?

  • Vote: I like it
  • +13
  • Vote: I do not like it

| Write comment?
»
5 years ago, # |
  Vote: I like it +8 Vote: I do not like it

As mentioned in the problem you have to take the input from file and print output in file .

include these line of code just after starting of main function

freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout);