QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#252800#6864. Fencing the cowsucup-team2335AC ✓17ms4744kbC++141.5kb2023-11-16 11:11:132023-11-16 11:11:13

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 17ms
memory: 4744kb

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