QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#543155#9176. Non-Interactive NimMaMengQiWA 10ms3920kbC++201.2kb2024-09-01 14:31:292024-09-01 14:31:29

詳細信息

Test #1:

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

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
Wrong Answer
time: 10ms
memory: 3920kb

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:

2
1 3
0 0
1
1 2
2
1 3
0 0
1
1 2
2
1 3
0 0
2
1 3
0 0
1
1 1
1
1 1
1
1 1
1
1 2
1
1 2
2
1 3
0 0
1
1 2
1
1 1
2
1 3
0 0
1
1 1
1
1 1
1
1 1
2
1 3
0 0
1
1 1
1
1 1
2
1 3
0 0
1
1 2
2
1 3
0 0
2
1 3
0 0
1
1 2
1
1 1
2
1 3
0 0
1
1 2
1
1 2
2
1 3
0 0
2
1 3
0 0
1
1 1
1
1 1
1
1 1
2
1 3
0 0
2
1 3
0 0
1
1 1
1
1 1
2
1 3
...

result:

wrong answer Integer parameter [name=p] equals to 0, violates the range [1, 2] (test case 1)