QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#482074#6864. Fencing the cowsCirno#AC ✓28ms4152kbC++142.5kb2024-07-17 17:06:502024-07-17 17:06:50

Details

Tip: Click on the bar to expand more detailed information

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