Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

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

Автор Qw04_Dragoknight, история, 7 часов назад, По-английски

This is my first post on codeforces, so I apologize for the quality. In the last 1004th round, I tilted hard because of Task A. I think there's a mistake in the tests here. Can someone explain me why I got WA in test case 2. There was x = 1 and y = 9. So if we take n=9 S(9)=9 and S(n+1)=S(10)=1, and the answer is YES.

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

»
7 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Qw04_Dragoknight (previous revision, new revision, compare).

  • »
    »
    7 часов назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится

    if x=9 and y=1 then n=9, s(9)=9=x and s(9+1)=s(10)=1=y but there is x=1 and y=9 so, NO is correct answer and YES is wrong answer

    • »
      »
      »
      7 часов назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Oh, thank you I thought the order of x and y was not important...

»
7 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Qw04_Dragoknight (previous revision, new revision, compare).

»
7 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Qw04_Dragoknight (previous revision, new revision, compare).

»
7 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

You found a value of n satisfying $$$S(n) = 9$$$ and $$$S(n + 1) = 1$$$, but they asked if there exists $$$n$$$ such that $$$S(n) = 1$$$ and $$$S(n + 1) = 9$$$. You interchanged $$$x$$$ and $$$y$$$.