Блог пользователя HNS_17502

Автор HNS_17502, история, 2 года назад, По-английски

Hello everyone, I was solving question 1521B and then I submitted my solution. In test case 2, my solution exceeded time limit and after that I referred to editorial. My Solution and editorial solution are having same time complexity of O(n). Can anyone help me with what's wrong with my solution?

My solution link:- 136682985 Editorial link:- Editorial

Теги tle
  • Проголосовать: нравится
  • -13
  • Проголосовать: не нравится

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

If you submit this code using GNU C++20 (64) instead, you might see a Runtime error and not a TLE.