Nabiur_Raouf's blog

By Nabiur_Raouf, history, 2 years ago, In English

Recently I am having trouble to this problem ==================[problem:1369]. Please help me why I am getting This runtime error[submission ]. As I am unable to find the reason. Thanks

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

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

You are going out of bounds here while (fr[p] == 0). Just add p<k to the while condition. AC code 169431262