QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#451360#8005. Crossing the BorderedxRE 0ms69244kbC++143.3kb2024-06-23 09:10:532024-06-23 09:10:54

详细

Test #1:

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

input:

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

output:

9 4

result:

ok 2 number(s): "9 4"

Test #2:

score: -100
Runtime Error

input:

18 10000000
956231 904623
1692946 1796774
1081323 1170319
3218792 2542661
3183376 3037270
1869132 1442561
35436 35018
1564635 1939950
1847344 2006043
755870 899310
1671882 2057413
1369264 1338951
3132483 3504034
2056224 1825640
1840949 1562071
1514040 1405352
2300821 2421801
2466540 3004920

output:


result: