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 1521. War Games 2

Is it correct?
Posted by 👾_challenger128_[PermSU] 8 Dec 2020 23:14
Test case: 5 5
Ans: 5 1 3 4 2
Test case: 10 2
Ans: 2 4 6 8 1 5 9 7 3
Is it correct ans?
Re: Is it correct?
Posted by Eugene Krokhalev 29 Dec 2021 01:04
Of course 2nd one is wrong, it skips 10.
I think, the correct answer for your second test is:
2 4 6 8 10 3 7 1 9 5