RaadSharar's blog

By RaadSharar, 3 years ago, In English

My solution 138848188 to problem C of last contest 1608C - Game Master seems to work fine on my PC, but producing RTE in test 1. Can somebody point out the issue?

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

»
3 years ago, # |
  Vote: I like it +5 Vote: I do not like it

change bool solve() to void solve() and it's AC

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

    Thank you so much. I was actually so busy seeing the code inside solve function that I forget to look at the return type. I once got RTE in UVA for this same exact thing.