QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#543147#9176. Non-Interactive NimMaMengQiTL 0ms3820kbC++23969b2024-09-01 14:26:162024-09-01 14:26:17

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
4
4 2 7 1
4
1 1 1 1

output:

3
1 4
2 2
3 1
-1

result:

ok OK 1 yes 1 no (2 test cases)

Test #2:

score: -100
Time Limit Exceeded

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

result: