QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#779428 | #5277. Limited Swaps | HuangHanSheng | WA | 0ms | 3720kb | C++20 | 1.2kb | 2024-11-24 19:00:57 | 2024-11-24 19:00:58 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3652kb
input:
5 1 3 5 2 4 3 5 1 4 2
output:
3 1 2 4
result:
ok OK, found solution, n = 5, ops = 3
Test #2:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
4 1 2 3 4 4 3 2 1
output:
-1
result:
ok OK, no solution
Test #3:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
1 1 1
output:
0
result:
ok OK, found solution, n = 1, ops = 0
Test #4:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
2 1 2 2 1
output:
-1
result:
ok OK, no solution
Test #5:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
2 1 2 1 2
output:
0
result:
ok OK, found solution, n = 2, ops = 0
Test #6:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
3 3 2 1 3 1 2
output:
-1
result:
ok OK, no solution
Test #7:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
3 1 2 3 1 2 3
output:
0
result:
ok OK, found solution, n = 3, ops = 0
Test #8:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
4 4 2 3 1 3 4 2 1
output:
-1
result:
ok OK, no solution
Test #9:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
4 3 2 4 1 3 2 1 4
output:
1 3
result:
ok OK, found solution, n = 4, ops = 1
Test #10:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
5 4 3 2 1 5 4 1 5 2 3
output:
-1
result:
ok OK, no solution
Test #11:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
5 3 2 4 5 1 3 4 2 5 1
output:
1 2
result:
ok OK, found solution, n = 5, ops = 1
Test #12:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
6 6 3 2 1 4 5 3 6 1 5 4 2
output:
-1
result:
ok OK, no solution
Test #13:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
6 6 5 2 4 3 1 6 2 5 4 3 1
output:
1 2
result:
ok OK, found solution, n = 6, ops = 1
Test #14:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
7 7 2 5 1 4 6 3 6 2 7 3 4 5 1
output:
-1
result:
ok OK, no solution
Test #15:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
7 6 3 5 2 4 7 1 6 7 3 5 2 1 4
output:
5 5 4 3 2 6
result:
ok OK, found solution, n = 7, ops = 5
Test #16:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
8 1 2 3 8 6 4 7 5 5 6 3 8 4 7 2 1
output:
-1
result:
ok OK, no solution
Test #17:
score: -100
Wrong Answer
time: 0ms
memory: 3668kb
input:
8 1 5 7 6 2 4 3 8 1 5 4 2 7 8 3 6
output:
6 5 4 3 4 7 6
result:
wrong answer Trying to swap elements 7 and 6 on 0-based indices 3 and 4 on step 3