QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#403693#6838. Assumption is All You NeedInfiniteStarlight#WA 1ms3760kbC++231.8kb2024-05-02 17:28:202024-05-02 17:28:21

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3760kb

input:

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

output:

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

result:

ok T=3

Test #2:

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

input:

315
10
8 4 6 1 2 9 7 5 10 3
6 7 8 10 5 1 3 2 9 4
10
10 8 2 9 6 5 7 4 3 1
7 1 3 5 9 8 4 10 6 2
6
4 6 5 3 1 2
1 5 4 6 2 3
12
5 9 12 8 10 6 11 4 2 3 1 7
9 2 3 1 5 12 4 7 6 10 8 11
10
4 7 3 2 8 9 6 10 5 1
1 4 8 10 3 7 9 6 2 5
7
1 2 4 5 6 7 3
4 3 5 6 7 2 1
3
1 3 2
2 1 3
7
1 5 3 7 6 4 2
6 5 2 1 3 4 7
1
1
...

output:

-1
8
1 7
7 8
4 5
2 6
4 9
2 4
2 3
2 10
5
2 3
3 4
1 3
1 6
1 5
-1
-1
-1
-1
-1
0
-1
-1
-1
3
4 5
1 2
1 6
-1
-1
-1
0
0
-1
-1
-1
-1
-1
-1
-1
-1
-1
3
2 4
1 2
1 5
-1
-1
-1
-1
-1
-1
0
0
-1
-1
-1
-1
-1
-1
0
0
-1
-1
0
-1
-1
-1
1
1 2
4
3 6
2 5
3 4
1 3
2
1 3
1 2
-1
-1
0
-1
-1
2
2 4
2 3
-1
-1
-1
0
-1
-1
-1
-1
-1
-...

result:

ok T=315

Test #3:

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

input:

297
6
4 1 2 5 6 3
2 5 3 1 4 6
4
2 4 3 1
4 3 1 2
6
2 3 5 1 6 4
4 5 6 1 3 2
12
4 12 3 1 11 6 9 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-1
-1
-1
3
2 3
3 4
1 3
-1
-1
0
-1
-1
-1
-1
0
-1
-1
0
-1
-1
-1
-1
-1
-1
-1
-1
6
2 3
3 4
3 6
5 8
3 5
5 7
-1
-1
-1
4
1 ...

result:

wrong answer Case #59: Jury has the answer but participant has not