When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

rahulpkvij's blog

By rahulpkvij, history, 3 years ago, In English

https://codeforces.com/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

»
3 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.com/blog/entry/75644