ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1252. Sorting the Tombstones

I've got AC, but I don't know the reason exactly.
I just guessed it, and got AC.
How about this case?
5
2 1 3 4 5
I think k could be 2
2 5 3 4 1
1 5 3 4 2
1 2 3 4 5
But my program output 0
Do I misunderstand this problem or something else?