ialwaysusethisaccount's blog

By ialwaysusethisaccount, 9 years ago, In English

http://mirror.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?

| Write comment?
»
9 years ago, # |
  Vote: I like it +1 Vote: I do not like it

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.