Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

HuTao_Oya_OyaOya's blog

By HuTao_Oya_OyaOya, history, 2 hours ago, In English
Problem Statement
Optimal Code

Link to the problem on GFG

Doubt: Can anyone explain to me how this code is working practically while theoretically O(1e4*1e5) should give TLE.

Is there any mathematically reason ?

Thanks for your time.

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

»
33 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

No