Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

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

Автор Truba, история, 11 лет назад, По-английски

Hi There! I am stuck on this problem. Can you give me some hints?

My #code gives WA#2.

Trying to solve with dynamic programming and binary searching the answer. Thanks!

Upd: You can check the correctness Here.

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