AtCoder Grand Contest 049 - AtCoder

Rate is +10 with 1 question AC in B. Keep the light blue for now. image

A

AGC049B

C

  • Thoughts.
    • I want 0 or less for ball 1, 1 or less for ball 2, and k or less for k-1.
    • Shave off the overhang?
      • That would be too easy.
    • Cutting off the overhang is not the shortest way.
      • “If Robot v. exists.”
      • You can disable the whole thing if you destroy it beforehand.
      • Just rewrite one ball to one larger value.
        • Call that ball and it’s all null and void.
        • This is a sufficient condition and we can cut more.
    • No need to count up if the robot is already destined to be destroyed by another robot.
  • Official Explanation
    • I’m not sure.
  • Tweet

This page is auto-translated from /nishio/AGC049 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.