QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#131547#2603. DisbalanceHuangHanShengWA 28ms50344kbC++14964b2023-07-27 16:00:352023-07-27 16:00:36

詳細信息

Test #1:

score: 100
Accepted
time: 28ms
memory: 50344kb

input:

8
1 1
1 2
2 1
2 2
3 1
3 2
3 3
4 3

output:

2
5
1
332748120
0
499122177
299473307
598946612

result:

ok 8 numbers

Test #2:

score: -100
Wrong Answer
time: 28ms
memory: 50280kb

input:

20
9 12
2 6
9 14
3 7
1 2
1 2
10 11
6 7
10 13
7 4
1 3
4 4
2 2
1 5
10 9
6 10
7 5
7 4
10 7
4 3

output:

228613496
104577996
440094719
822363213
5
5
537116365
615800088
791933069
0
9
570425345
332748120
20
334869712
59668619
0
0
0
598946612

result:

wrong answer 1st numbers differ - expected: '601023541', found: '228613496'