QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#396335#2851. 生生不息ucup-team1383AC ✓0ms3672kbC++17715b2024-04-22 17:37:212024-04-22 17:37:21

詳細信息

Test #1:

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

input:

25
2 4
2 3
2 1
1 5
4 2
5 4
5 3
2 5
1 4
4 4
5 2
5 1
4 5
3 3
3 2
4 3
5 5
3 1
4 1
3 5
3 4
1 3
1 2
2 2
1 1

output:

73
18
0
0
73
469972
11398
267
0
31828
267
0
469972
150
18
1533
12785753
0
0
11398
1533
0
0
5
0

result:

ok 25 lines