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

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

Problem statement

I am unable understand the first testcase of this problem.

10 2 3

When L = 1, 5 and 7 then both will into abyss.

When L = 6 both will complete race at the same time.

So we should consider four cases when there will be tie. Why are we taking only 1, 6 and 7?

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

»
8 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

They will never fall, they stop before that.

When L == 5 Willman stops at 3 and Bolt stops at 4, Bolt wins.