rahulpkvij's blog

By rahulpkvij, history, 4 years ago, In English

https://codeforces.net/contest/1471/submission/105087978 I am unable to understand why my code fails TC 47. Any help would be highly appreciated. Thank you !

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

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

You are mapping a vector. Think about the Time Complexity of that.
Refer to this — https://codeforces.net/blog/entry/75644