QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#543101#9176. Non-Interactive NimZhaoZiLongWA 14ms3880kbC++171.0kb2024-09-01 13:49:102024-09-01 13:49:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
4
4 2 7 1
4
1 1 1 1

output:

3
3 7
1 3
4 1
-1

result:

ok OK 1 yes 1 no (2 test cases)

Test #2:

score: -100
Wrong Answer
time: 14ms
memory: 3880kb

input:

50000
2
3 3
2
2 2
2
3 3
2
2 2
2
3 3
2
3 3
2
1 1
2
1 1
2
1 1
2
2 2
2
2 2
2
3 3
2
2 2
2
1 1
2
3 3
2
1 1
2
1 1
2
1 1
2
3 3
2
1 1
2
1 1
2
3 3
2
2 2
2
3 3
2
3 3
2
2 2
2
1 1
2
3 3
2
2 2
2
2 2
2
3 3
2
3 3
2
1 1
2
1 1
2
1 1
2
3 3
2
3 3
2
1 1
2
1 1
2
3 3
2
2 2
2
2 2
2
2 2
2
1 1
2
1 1
2
2 2
2
2 2
2
1 1
2
3 3
...

output:

-1
-1
-1
-1
-1
-1
1
2 1
1
2 1
1
2 1
-1
-1
-1
-1
1
2 1
-1
1
2 1
1
2 1
1
2 1
-1
1
2 1
1
2 1
-1
-1
-1
-1
-1
1
2 1
-1
-1
-1
-1
-1
1
2 1
1
2 1
1
2 1
-1
-1
1
2 1
1
2 1
-1
-1
-1
-1
1
2 1
1
2 1
-1
-1
1
2 1
-1
-1
1
2 1
-1
-1
1
2 1
-1
-1
1
2 1
-1
1
2 1
-1
-1
-1
-1
1
2 1
-1
1
2 1
1
2 1
-1
-1
-1
-1
1
2 1
-1
-1
...

result:

wrong answer judge has answer but participant doesn't (test case 1)