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

im_mortal79's blog

By im_mortal79, history, 8 months ago, In English

In the problem B of recent codeforces contest. I am using function upper_bound whose complexity is logn,but is still getting TLE see this 111426754 but after some minute changes in the code it got accepted see this 111426808 Now,I am not able to understand what is the difference in above codes. Please help me undestand.

Thanks in advance.

Read more »

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