QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#396338#2851. 生生不息ucup-team1383AC ✓0ms3656kbC++17345b2024-04-22 17:38:412024-04-22 17:38:42

详细

Test #1:

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

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