QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#681622#5380. Bell RingingyellowbirdAC ✓301ms34944kbC++201.6kb2024-10-27 10:26:262024-10-27 10:26:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3904kb

input:

2

output:

1 2 
2 1 

result:

ok Thank you for your great code. It was fantastic.

Test #2:

score: 0
Accepted
time: 1ms
memory: 3852kb

input:

3

output:

1 2 3 
1 3 2 
3 1 2 
3 2 1 
2 3 1 
2 1 3 

result:

ok Thank you for your great code. It was fantastic.

Test #3:

score: 0
Accepted
time: 1ms
memory: 3908kb

input:

1

output:

1 

result:

ok Thank you for your great code. It was fantastic.

Test #4:

score: 0
Accepted
time: 1ms
memory: 3916kb

input:

4

output:

1 2 3 4 
1 2 4 3 
1 4 2 3 
1 4 3 2 
4 1 2 3 
4 1 3 2 
4 3 1 2 
3 4 1 2 
3 1 4 2 
1 3 4 2 
1 3 2 4 
3 1 2 4 
3 2 1 4 
2 3 4 1 
2 4 3 1 
4 2 1 3 
2 4 1 3 
4 2 3 1 
4 3 2 1 
3 4 2 1 
3 2 4 1 
2 3 1 4 
2 1 3 4 
2 1 4 3 

result:

ok Thank you for your great code. It was fantastic.

Test #5:

score: 0
Accepted
time: 1ms
memory: 3916kb

input:

5

output:

1 2 3 4 5 
1 3 2 4 5 
1 3 4 2 5 
1 4 3 2 5 
1 4 3 5 2 
4 1 3 5 2 
4 1 5 3 2 
1 4 5 3 2 
1 5 4 3 2 
1 4 5 2 3 
4 1 5 2 3 
4 1 2 5 3 
1 4 2 3 5 
4 1 3 2 5 
4 3 1 5 2 
4 3 1 2 5 
3 4 1 2 5 
3 1 4 2 5 
1 3 4 5 2 
1 3 5 4 2 
3 1 4 5 2 
3 4 1 5 2 
3 4 5 1 2 
4 3 5 1 2 
4 3 5 2 1 
4 5 3 1 2 
5 4 1 3 2 
5 1...

result:

ok Thank you for your great code. It was fantastic.

Test #6:

score: 0
Accepted
time: 5ms
memory: 4200kb

input:

6

output:

1 2 3 4 5 6 
1 3 2 4 6 5 
1 2 3 4 6 5 
1 2 4 3 6 5 
1 2 4 3 5 6 
2 1 3 4 6 5 
1 2 3 6 4 5 
1 2 6 3 4 5 
1 6 2 3 4 5 
6 1 2 3 4 5 
6 1 3 2 4 5 
1 6 2 3 5 4 
1 2 6 3 5 4 
1 6 2 5 3 4 
6 1 2 5 3 4 
6 1 2 3 5 4 
1 6 3 2 5 4 
1 6 3 2 4 5 
6 1 3 2 5 4 
6 3 1 2 5 4 
6 3 2 1 5 4 
6 3 1 2 4 5 
6 1 3 4 2 5 
6...

result:

ok Thank you for your great code. It was fantastic.

Test #7:

score: 0
Accepted
time: 43ms
memory: 6728kb

input:

7

output:

1 2 3 4 5 6 7 
1 2 3 4 5 7 6 
2 1 3 5 4 7 6 
2 1 3 4 5 6 7 
1 2 3 5 4 6 7 
2 1 3 4 5 7 6 
1 2 4 3 5 7 6 
2 1 4 3 5 7 6 
1 2 4 3 5 6 7 
2 1 4 3 5 6 7 
2 1 4 5 3 6 7 
1 2 4 5 3 7 6 
2 1 4 5 3 7 6 
1 2 4 5 3 6 7 
1 4 2 5 3 7 6 
1 4 2 3 5 6 7 
1 4 2 5 3 6 7 
4 1 2 3 5 6 7 
1 4 2 3 5 7 6 
4 1 2 5 3 7 6 
...

result:

ok Thank you for your great code. It was fantastic.

Test #8:

score: 0
Accepted
time: 301ms
memory: 34944kb

input:

8

output:

1 2 3 4 5 6 7 8 
1 2 3 5 4 6 8 7 
1 2 3 4 5 6 8 7 
1 2 3 4 5 8 6 7 
1 3 2 4 5 6 8 7 
1 3 2 5 4 6 7 8 
1 3 2 4 5 6 7 8 
1 3 2 5 4 7 6 8 
1 2 3 5 4 6 7 8 
2 1 3 5 4 6 7 8 
1 2 3 5 4 7 6 8 
1 2 3 4 5 7 6 8 
1 2 3 5 4 7 8 6 
1 2 3 4 5 7 8 6 
1 3 2 4 5 7 6 8 
1 3 2 5 4 7 8 6 
1 3 2 4 5 7 8 6 
1 2 3 4 5 8...

result:

ok Thank you for your great code. It was fantastic.