QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#482074#6864. Fencing the cowsCirno#AC ✓28ms4152kbC++142.5kb2024-07-17 17:06:502024-07-17 17:06:50

详细

Test #1:

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

input:

9
4 1
1 1
1 -1
-1 1
-1 -1
0 0
4 1
1 1
1 -1
-1 1
-1 -1
1 0
500 500
-17 6
-12 -117
29 -279
47 -350
59 -396
62 -403
114 -508
220 -674
222 -676
481 -907
667 -1068
830 -1195
1063 -1347
1125 -1384
1196 -1424
1271 -1462
1430 -1514
1522 -1540
1941 -1579
1996 -1581
2068 -1573
2071 -1572
4138 -4
4143 1
4145 6...

output:

4
-1
36
6
34
-1
77
-1
-1

result:

ok 9 lines