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

what is the output for n=6 k=2,n=5 k=4
Posted by Madhav 13 Jun 2008 04:15
pls help.Can any one give the output for the above test cases
and explain why is it like that?
Re: what is the output for n=6 k=2,n=5 k=4
Posted by Elmurod 30 Oct 2008 19:11
Madhav wrote 13 June 2008 04:15
pls help.Can any one give the output for the above test cases
and explain why is it like that?
n = 5 k =4
1 2 3 4 5
1 round : 1 2 3 5 4
2 round : 1 2 5 4 3
3 round : 1 5 4 3 2
4 round : 5 4 3 2 1
6 round : 5 4 3 1 2
answer 5 4 3 1 2

n = 6 k = 2
1 2 3 4 5 6

1 round : 1 3 4 5 6 2
2 round : 1 3 5 6 2 4
3 round : 1 3 5 2 4 6
4 round : 1 3 5 2 6 4
5 round : 3 5 2 6 4 1
6 round : 3 2 6 4 1 5
answer 3 2 6 4 1 5
Re: what is the output for n=6 k=2,n=5 k=4
Posted by dAFTc0d3r [Yaroslavl SU] 23 Aug 2010 21:14
Elmurod wrote 30 October 2008 19:11
n = 5 k =4
1 2 3 4 5
1 round : 1 2 3 5 4
2 round : 1 2 5 4 3
3 round : 1 5 4 3 2
4 round : 5 4 3 2 1
6 round : 5 4 3 1 2
answer 5 4 3 1 2

n = 6 k = 2
1 2 3 4 5 6

1 round : 1 3 4 5 6 2
2 round : 1 3 5 6 2 4
3 round : 1 3 5 2 4 6
4 round : 1 3 5 2 6 4
5 round : 3 5 2 6 4 1
6 round : 3 2 6 4 1 5
answer 3 2 6 4 1 5

What's that sh!t?

n = 5, k = 4
4 3 5 2 1

n = 6, k = 2
2 4 6 3 1 5