QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#503788#5380. Bell Ringingxiaowuc1AC ✓218ms78880kbJava82.9kb2024-08-04 01:12:462024-08-04 01:12:47

详细

Test #1:

score: 100
Accepted
time: 34ms
memory: 36704kb

input:

2

output:

1 2
2 1

result:

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

Test #2:

score: 0
Accepted
time: 31ms
memory: 37996kb

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: 31ms
memory: 39608kb

input:

1

output:

1

result:

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

Test #4:

score: 0
Accepted
time: 37ms
memory: 39312kb

input:

4

output:

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

result:

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

Test #5:

score: 0
Accepted
time: 25ms
memory: 37104kb

input:

5

output:

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

result:

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

Test #6:

score: 0
Accepted
time: 54ms
memory: 37548kb

input:

6

output:

1 2 3 4 5 6
1 2 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 2 3 5 4
1 6 2 3 5 4
1 2 6 3 5 4
1 2 3 6 5 4
1 2 3 5 6 4
1 2 3 5 4 6
1 2 5 3 4 6
1 2 5 3 6 4
1 2 5 6 3 4
1 2 6 5 3 4
1 6 2 5 3 4
6 1 2 5 3 4
6 1 5 2 3 4
1 6 5 2 3 4
1 5 6 2 3 4
1 5 2 6 3 4
1 5 2 3 6 4
1 5 2 3 4 6
5 1 2 3 4 6
...

result:

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

Test #7:

score: 0
Accepted
time: 112ms
memory: 47812kb

input:

7

output:

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

result:

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

Test #8:

score: 0
Accepted
time: 218ms
memory: 78880kb

input:

8

output:

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

result:

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