shadyman123's blog

By shadyman123, history, 6 years ago, In English

Can someone please tell me why i am getting a runtime error in this code? Link : https://mirror.codeforces.com/contest/1141/submission/51500442 Problem link : https://mirror.codeforces.com/contest/1141/problem/C

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

| Write comment?
»
6 years ago, # |
Rev. 3   Vote: I like it +3 Vote: I do not like it

ans[i] can be larger than n so RTE. Your code with modify: 51565447