Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

Автор ialwaysusethisaccount, 9 лет назад, По-английски

http://codeforces.com/contest/472/problem/C

i dont understand the second test case. whatever handle we choose, the order will always be 2 3 1, the how the answer for 3 1 2 can be yes?

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

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

What if gaoyuan chen uses chen, gennady korotkevich uses gennady and petr mitrichev uses petr? In that case, the order would be 3 1 2 right? This Permutation is possible hence the answer.