Codeforces celebrates 10 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link https://codeforces.com/10years. ×

retrograd's blog

By retrograd, history, 13 days ago, In English,

Hello!

I will be continuing my "solving problems on first sight" series with another livestream on YouTube this Sunday. In case you missed my first post and don't know what it is about, please refer to the following link:

https://codeforces.com/blog/entry/73212

The stream is going to be at 3 PM EEST

If there is a contest and there is a better time for the livestream that would not clash with it, please let me know by Friday and I might adjust the time. As before, you can vote suggestions for what I would solve on this link: https://poll.ly/#/G65O8lOL (please do your best to check that I haven't actually solved the tasks beforehand). I will also be looking for suggestions inside the comments section on this blog and the one before.

YouTube channel: https://www.youtube.com/channel/UCI-n1rZ2qMCz6h53EoEAYlw

I hope to see you all on Sunday!

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

»
13 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Please change the time, stream is clashing with Atcoder Contest

  • »
    »
    12 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Hey, I'm afraid I won't be able to postpone the livestream. As I've seen, the following contests will be held on Saturday and the stream wouldn't clash with them. I will be more careful to avoid this kind of situations in the future. In the mean time, feel free to watch the recording at any time.

»
10 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Reminder: streaming starts in less than 2 hours!

»
10 days ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Thanks for tuning in!

Apparently, the problem J got accepted right now without much change to the code. I'm not sure what was going on with the TLE verdicts, but the solution working after a minor change in the binary search.

Submission: https://pastebin.com/mgRs95CZ