sajidhasan2021's blog

By sajidhasan2021, history, 4 years ago, In English

I was solving Div.2 234B and getting RTE but the code is running fine on my IDE and also in Ideone. can someone help me out here? submitted code: https://codeforces.com/contest/234/submission/89567263 thank you

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

| Write comment?
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

It uses file reading and writing. At the top it says that it doesn't accept standard input and output. Use freoepn

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

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