QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#810925#9765. Repetitive Routesucup-team1247#AC ✓2ms10300kbC++20928b2024-12-12 13:29:332024-12-12 13:29:34

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 10300kb

input:

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

output:

5

result:

ok single line: '5'

Test #2:

score: 0
Accepted
time: 1ms
memory: 9808kb

input:

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

output:

16

result:

ok single line: '16'