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

Автор HeydarBABA, история, 4 года назад, По-английски

1239C - Очередь в поезде

63055149

can someone explain why my code is wrong.

thanks

EDIT: I missed this part in the problem text "at the very first moment he observes that all seats with numbers smaller than i are busy, he will go to the tank."

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

»
4 года назад, # |
Rev. 2   Проголосовать: нравится +3 Проголосовать: не нравится

3 10

2 1 0

The answer is 30 20 10, your code will print 20 30 10.