QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#781538 | #5277. Limited Swaps | ZhaoZiLong | WA | 1ms | 7804kb | C++23 | 1.4kb | 2024-11-25 16:25:42 | 2024-11-25 16:25:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 5708kb
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: 5656kb
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: 7668kb
input:
1 1 1
output:
0
result:
ok OK, found solution, n = 1, ops = 0
Test #4:
score: 0
Accepted
time: 1ms
memory: 5760kb
input:
2 1 2 2 1
output:
-1
result:
ok OK, no solution
Test #5:
score: 0
Accepted
time: 1ms
memory: 7804kb
input:
2 1 2 1 2
output:
0
result:
ok OK, found solution, n = 2, ops = 0
Test #6:
score: 0
Accepted
time: 1ms
memory: 5696kb
input:
3 3 2 1 3 1 2
output:
-1
result:
ok OK, no solution
Test #7:
score: 0
Accepted
time: 1ms
memory: 7732kb
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: 1ms
memory: 5704kb
input:
4 4 2 3 1 3 4 2 1
output:
-1
result:
ok OK, no solution
Test #9:
score: 0
Accepted
time: 1ms
memory: 7748kb
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: 1ms
memory: 5696kb
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: 1ms
memory: 5636kb
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: 1ms
memory: 7740kb
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: 7804kb
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: 1ms
memory: 5716kb
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: -100
Wrong Answer
time: 1ms
memory: 7796kb
input:
7 6 3 5 2 4 7 1 6 7 3 5 2 1 4
output:
-1
result:
wrong answer Jury has a solution, but participant didn't find any, n = 7