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

Why we should use GCD in this problem?
Posted by BYF 29 Oct 2004 19:30
I've got AC, but I don't know the reason exactly.
I just guessed it, and got AC.
Re: Why we should use GCD in this problem?
Posted by BYF 30 Oct 2004 13:55
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?