QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#460439#6864. Fencing the cowsZhangYiDeAC ✓541ms5712kbC++201.7kb2024-07-01 16:44:202024-07-01 16:44:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 541ms
memory: 5712kb

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