QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#503231#6461. Symmetryxiaowuc1AC ✓1631ms164880kbJava85.3kb2024-08-03 17:03:292024-08-03 17:03:33

详细

Test #1:

score: 100
Accepted
time: 25ms
memory: 38444kb

input:

4
0 0
1000 0
0 1000
1000 1000

output:

0

result:

ok single line: '0'

Test #2:

score: 0
Accepted
time: 41ms
memory: 38556kb

input:

11
0 0
70 100
24 200
30 300
480 400
0 100
0 200
0 400
100 0
300 0
400 0

output:

6

result:

ok single line: '6'

Test #3:

score: 0
Accepted
time: 37ms
memory: 38280kb

input:

1
-15339 3522

output:

0

result:

ok single line: '0'

Test #4:

score: 0
Accepted
time: 33ms
memory: 39344kb

input:

2
8086 489
16136 13839

output:

0

result:

ok single line: '0'

Test #5:

score: 0
Accepted
time: 29ms
memory: 38304kb

input:

3
7160 -19328
-12015 4619
-2632 -6409

output:

1

result:

ok single line: '1'

Test #6:

score: 0
Accepted
time: 30ms
memory: 38652kb

input:

4
2666 6024
2035 -1275
4717 -468
-19899 -6165

output:

2

result:

ok single line: '2'

Test #7:

score: 0
Accepted
time: 40ms
memory: 37184kb

input:

5
631 10618
19640 654
19558 -13463
12877 6929
-16429 7549

output:

3

result:

ok single line: '3'

Test #8:

score: 0
Accepted
time: 45ms
memory: 37180kb

input:

6
-4917 -2761
-613 -6573
19771 -19106
19951 -14819
-7977 -13136
-8958 10224

output:

4

result:

ok single line: '4'

Test #9:

score: 0
Accepted
time: 38ms
memory: 38204kb

input:

7
17873 10247
-11232 9579
-4648 -5541
1371 -1213
17245 -2172
-15673 -17220
9911 -15848

output:

5

result:

ok single line: '5'

Test #10:

score: 0
Accepted
time: 49ms
memory: 38308kb

input:

8
-13932 -884
3986 12753
19307 -13617
8075 -2448
3215 -19659
-13589 -13296
-112 19238
-9501 -564

output:

6

result:

ok single line: '6'

Test #11:

score: 0
Accepted
time: 44ms
memory: 38584kb

input:

9
-8004 6233
18643 -8579
16303 -8538
-16787 -12384
-6554 -5141
-3778 10134
18255 13601
-4062 443
-13832 1968

output:

7

result:

ok single line: '7'

Test #12:

score: 0
Accepted
time: 39ms
memory: 37876kb

input:

10
18071 10388
15560 15088
-10173 16398
4401 -8151
7181 3340
10496 2022
-3901 -1299
9211 -10895
16897 -1132
-18233 8091

output:

8

result:

ok single line: '8'

Test #13:

score: 0
Accepted
time: 1611ms
memory: 161536kb

input:

1000
-3308 8447
-14158 -262
-18265 3203
8316 -10383
19906 -5261
8434 -14249
-2557 -16239
793 -17038
10827 10061
18161 -5149
-16930 18452
6410 -15889
-13535 9465
2841 781
-8162 -16237
15064 -14767
16282 5661
9840 -3317
-5085 13109
-18660 12452
-7032 -19464
-3965 18293
-848 -9827
10166 17223
-16359 39...

output:

996

result:

ok single line: '996'

Test #14:

score: 0
Accepted
time: 1631ms
memory: 160412kb

input:

1000
-5152 4641
-12033 13718
13473 2688
-12171 -5625
-400 -1092
-3315 -9730
-12577 -3059
4474 15250
1165 -10960
18189 -19053
2121 10801
-6988 5486
1614 -9796
12417 -7270
-6997 7323
-16984 -3783
7612 -4226
3428 -1180
8167 14576
-8994 7271
-1459 2045
-11938 -995
7823 8217
13649 -10547
303 -17291
-2 46...

output:

996

result:

ok single line: '996'

Test #15:

score: 0
Accepted
time: 1543ms
memory: 161944kb

input:

1000
-5155 -15723
11016 -304
-9890 12064
-13576 19176
-10531 -5615
17665 415
6303 1522
11173 13567
-3825 11174
1612 -14254
-15087 11940
-1900 -3103
2317 -9294
17069 -17309
10444 -18497
-11038 8977
-9114 4448
-19429 -17720
17986 -15912
2756 -7792
15674 -13689
-5637 18038
-15762 19254
-19206 15522
704...

output:

996

result:

ok single line: '996'

Test #16:

score: 0
Accepted
time: 1563ms
memory: 161096kb

input:

1000
-701 2002
3314 -1030
13304 -2084
-1704 78
9760 -17571
7644 -16617
13334 -2082
17667 -19104
178 -12188
18303 -4566
15289 -4721
3995 -13988
4895 -159
-2963 -5764
9958 212
15155 -2077
10829 -1816
18561 -19482
11832 -5854
13566 -754
10600 -14589
16342 -10445
6267 -16774
10346 -17388
4958 -1642
725 ...

output:

114

result:

ok single line: '114'

Test #17:

score: 0
Accepted
time: 1432ms
memory: 160888kb

input:

1000
13897 -17211
19614 1555
16553 1362
16579 -18435
-225 -10609
15553 4104
-10870 457
6001 10519
-1946 501
-2308 -10707
-6539 2619
-7696 -7651
-11998 -12671
17340 -13743
11465 -4402
-7067 -3634
12465 -7144
-4616 -7968
17059 -8322
16194 11092
-3044 -9322
6242 -7072
-12045 6467
11583 2135
12358 -1073...

output:

386

result:

ok single line: '386'

Test #18:

score: 0
Accepted
time: 1486ms
memory: 161916kb

input:

1000
5430 7031
-18965 7622
19552 17933
9695 8617
-6953 17515
-3944 4370
12484 10319
16226 17802
-7053 -674
15272 15234
498 17375
12454 -7449
-2241 19495
-3002 -3051
17688 4657
8264 6194
10754 -4121
11618 7303
-2269 2750
19763 13249
-5233 10622
-6880 4946
-13130 -1148
17024 17792
11335 -7877
-8279 -1...

output:

302

result:

ok single line: '302'

Test #19:

score: 0
Accepted
time: 1171ms
memory: 163852kb

input:

1000
-12586 12745
-15967 -16402
638 -10184
11936 11216
-6642 -18872
1268 14990
-319 -10451
-2439 -1812
5545 15473
-14752 -15736
-6069 -8245
-9670 -248
790 9873
-19401 -15202
-1254 476
2473 -4208
4807 11970
-19295 -12225
-216 -19267
18575 15272
-6654 -10644
-15325 -14841
-15056 -14871
3632 -4196
4417...

output:

536

result:

ok single line: '536'

Test #20:

score: 0
Accepted
time: 1557ms
memory: 162212kb

input:

1000
-17255 -16425
-2783 -18593
-4553 -16280
-7941 -18248
-15534 -17304
-3771 -17375
3842 -18999
5074 -18212
-13288 -17046
-4088 -19219
12711 -19078
6771 -19866
-16940 -19046
-3373 -19067
3295 -19771
-7605 -19741
-7556 -18160
-3269 -19138
7411 -19775
-67 -18591
4909 -18048
9368 -17533
-9226 -18653
3...

output:

107

result:

ok single line: '107'

Test #21:

score: 0
Accepted
time: 1521ms
memory: 164880kb

input:

1000
-88 7236
13882 4766
-3187 -8111
10263 -632
2363 10180
707 6055
-13681 3881
-305 5515
18210 -1581
-15516 11274
16628 -2214
13494 -4121
2560 15509
17097 5242
275 9785
-17001 -9050
12593 -4228
11881 8617
15101 13872
5809 11984
-12537 -8719
-13388 -5132
9263 11432
-13640 -4794
16251 1051
-18296 -16...

output:

479

result:

ok single line: '479'

Test #22:

score: 0
Accepted
time: 1543ms
memory: 162372kb

input:

1000
-12212 -3982
-5757 -2783
-8720 -7143
-9977 -10459
18557 8202
18723 17692
-8489 -16294
-17617 -8759
-12003 -12960
10557 -18907
10573 -19732
-8529 -18112
-5176 -8890
-16910 -14836
-15419 -11635
-19321 -13346
18790 14113
-12384 -19286
-7014 -16856
-13723 -7548
-4716 -19128
-6878 -2333
5587 -15565
...

output:

441

result:

ok single line: '441'

Test #23:

score: 0
Accepted
time: 1508ms
memory: 162108kb

input:

1000
-4458 13081
-7544 4876
16024 7163
-8960 14891
3203 7777
-6035 -3575
17360 -5549
3984 -10100
13368 6829
19314 5102
19581 18192
15597 -14598
488 16482
11163 8347
16235 -14417
19170 -18218
8704 6330
9492 7186
2242 1395
18922 -1674
19996 -2893
8828 -1960
14983 11582
15854 -1398
-1079 -769
-195 2709...

output:

679

result:

ok single line: '679'

Test #24:

score: 0
Accepted
time: 35ms
memory: 39356kb

input:

2
16117 14975
8130 14975

output:

0

result:

ok single line: '0'

Test #25:

score: 0
Accepted
time: 33ms
memory: 38340kb

input:

4
10246 -11309
-12611 -19404
18390 -11309
-6042 -11309

output:

1

result:

ok single line: '1'

Test #26:

score: 0
Accepted
time: 41ms
memory: 38324kb

input:

11
-1815 7454
15763 5463
6175 6549
-17795 6368
-7077 17150
-217 7273
17361 5282
-16197 6187
10461 17492
9371 6187
7773 6368

output:

4

result:

ok single line: '4'

Test #27:

score: 0
Accepted
time: 63ms
memory: 39248kb

input:

49
-2644 -3408
-10634 -8589
552 -3408
552 -13770
-396 19288
-18624 6954
8542 -8589
5346 -18951
8542 12135
5977 19288
-18624 -3408
11738 -18951
-17026 1773
8542 -18951
5346 12135
-12232 -13770
3748 -13770
2150 1773
-9036 -13770
13336 -13770
-15428 6954
-5840 -13770
-13830 1773
-15428 -3408
-2644 6954...

output:

22

result:

ok single line: '22'

Test #28:

score: 0
Accepted
time: 873ms
memory: 96124kb

input:

796
3087 -1421
10003 -8243
7793 11086
-16075 -8243
10055 -5969
7351 11086
16477 4264
-4271 5401
17127 -5969
12083 -13928
-12981 -8243
19363 14497
2801 5401
10939 13360
18037 14497
18141 -19613
-16699 -16202
3607 1990
5817 1990
11667 -12791
-3283 9949
4803 -3695
10705 3127
669 8812
-2347 12223
5479 -...

output:

546

result:

ok single line: '546'

Test #29:

score: 0
Accepted
time: 302ms
memory: 67824kb

input:

301
16443 -14160
-1298 16025
-15477 8824
-2709 8824
-12693 19201
483 14570
2942 3321
-12958 -649
-5169 3213
-4305 205
5327 6497
-1113 5951
11687 8085
-9093 -2668
-12428 -2237
6652 12849
483 3078
-11368 15231
-1113 11697
-16490 10260
7712 9673
-17463 12849
-4478 15231
14602 9673
2677 4115
11157 -649
...

output:

163

result:

ok single line: '163'

Test #30:

score: 0
Accepted
time: 169ms
memory: 51396kb

input:

188
-1333 12278
-14005 14100
-2800 -9675
19376 -9675
-5704 -3022
11192 -16328
4856 -16328
1043 19250
5387 16833
-18904 -16328
-11512 -9675
-2272 -16328
-7541 15011
-3592 -9675
-10741 15011
12248 -9675
267 12278
-14416 -3022
3272 -16328
-160 -3022
3979 19566
-9136 -9675
5648 -16328
-17077 15922
-1837...

output:

110

result:

ok single line: '110'

Test #31:

score: 0
Accepted
time: 109ms
memory: 44372kb

input:

93
562 -122
-1352 10265
6304 -122
-9008 10265
5347 10265
-15707 -10509
17082 -6092
18745 -10509
-164 -14725
1519 -10509
-9773 5285
-16664 -10509
-4223 10265
-3674 -6621
13003 -10509
8218 -10509
-4223 -122
-19535 -122
-9965 10265
9175 -10509
4390 -122
2476 -10509
7261 -122
-14750 10265
15874 -10509
1...

output:

36

result:

ok single line: '36'

Test #32:

score: 0
Accepted
time: 149ms
memory: 48356kb

input:

168
-17555 6608
-17835 6608
-17915 14382
-18005 2721
-17805 10495
-17625 2721
-18375 6608
-17705 18269
-18195 6608
-17815 6608
-6624 -19193
-18105 2721
-18485 2721
-17925 2721
-17925 10495
-17535 14382
-17565 18269
2764 2683
-17615 6608
-18675 6608
-19143 -8502
-18315 14382
-18015 6608
-18645 2721
-...

output:

76

result:

ok single line: '76'

Test #33:

score: 0
Accepted
time: 351ms
memory: 77640kb

input:

1000
89 0
473 0
-62 0
298 0
-406 0
236 0
-168 0
18 0
405 0
109 0
-252 0
-497 0
-425 0
-190 0
-468 0
409 0
-315 0
-17 0
-293 0
186 0
-97 0
-42 0
189 0
-466 0
307 0
257 0
154 0
-324 0
268 0
247 0
-132 0
452 0
183 0
-344 0
499 0
-310 0
-486 0
-205 0
481 0
466 0
414 0
-373 0
126 0
299 0
498 0
294 0
476 ...

output:

0

result:

ok single line: '0'

Test #34:

score: 0
Accepted
time: 394ms
memory: 76176kb

input:

1000
0 442
0 121
0 -25
0 310
0 23
0 -385
0 -458
0 -413
0 -223
0 -45
0 87
0 -467
0 207
0 128
0 -326
0 -476
0 -149
0 -161
0 -307
0 -379
0 272
0 -490
0 58
0 -370
0 -471
0 -266
0 321
0 458
0 -138
0 411
0 269
0 -226
0 -86
0 -209
0 -112
0 173
0 25
0 -20
0 165
0 261
0 -198
0 -357
0 102
0 215
0 267
0 -84
0 ...

output:

0

result:

ok single line: '0'

Test #35:

score: 0
Accepted
time: 420ms
memory: 79500kb

input:

1000
-496 -496
1 1
-327 -327
-168 -168
137 137
-352 -352
278 278
-190 -190
-117 -117
302 302
187 187
486 486
-450 -450
127 127
-367 -367
429 429
418 418
317 317
-259 -259
227 227
394 394
178 178
-79 -79
31 31
189 189
-160 -160
452 452
-407 -407
-46 -46
-23 -23
-451 -451
-155 -155
164 164
-295 -295
3...

output:

0

result:

ok single line: '0'

Test #36:

score: 0
Accepted
time: 395ms
memory: 76844kb

input:

1000
20 -20
108 -108
-58 58
24 -24
419 -419
-175 175
-494 494
392 -392
-218 218
-24 24
414 -414
-164 164
-154 154
-341 341
293 -293
112 -112
-346 346
53 -53
-162 162
-302 302
-481 481
-250 250
217 -217
116 -116
-446 446
-282 282
-493 493
476 -476
243 -243
-8 8
473 -473
324 -324
397 -397
480 -480
-44...

output:

0

result:

ok single line: '0'

Test #37:

score: 0
Accepted
time: 356ms
memory: 75752kb

input:

1000
396 -594
-470 705
90 -135
846 -1269
172 -258
-574 861
278 -417
-924 1386
-446 669
552 -828
292 -438
-238 357
666 -999
732 -1098
-810 1215
-632 948
-666 999
-642 963
412 -618
-434 651
-584 876
780 -1170
306 -459
-50 75
434 -651
242 -363
870 -1305
-252 378
-756 1134
-442 663
-604 906
658 -987
-68...

output:

0

result:

ok single line: '0'

Test #38:

score: 0
Accepted
time: 359ms
memory: 77484kb

input:

1000
1455 485
1107 369
1002 334
747 249
-492 -164
384 128
-1380 -460
-1224 -408
582 194
-1179 -393
-129 -43
405 135
588 196
-1014 -338
-408 -136
-1374 -458
-453 -151
600 200
-1353 -451
-1356 -452
1326 442
381 127
-969 -323
1473 491
672 224
1314 438
-480 -160
303 101
780 260
-567 -189
516 172
1140 38...

output:

0

result:

ok single line: '0'

Test #39:

score: 0
Accepted
time: 1292ms
memory: 102964kb

input:

1000
59 3
16 5
39 6
7 7
61 10
45 8
3 10
70 4
31 10
100 9
89 8
61 5
2 5
15 7
56 7
7 6
48 4
27 2
42 8
65 8
28 6
65 3
95 7
31 2
67 5
73 9
100 3
68 8
43 6
53 3
14 5
14 3
87 8
4 3
92 6
28 3
29 10
84 3
25 6
11 3
38 5
64 8
38 4
35 1
41 9
97 5
84 10
17 3
39 8
2 6
73 3
75 5
47 5
56 5
78 10
34 6
93 4
96 7
4 1...

output:

0

result:

ok single line: '0'

Test #40:

score: 0
Accepted
time: 1103ms
memory: 99224kb

input:

961
28 19
18 19
13 11
4 18
7 19
23 15
15 20
21 18
15 23
28 2
18 16
9 4
18 10
16 13
21 11
9 11
20 18
17 17
13 24
16 25
14 1
10 10
25 17
21 6
31 1
25 23
29 2
6 16
25 10
27 1
25 4
14 8
17 13
5 11
19 19
29 19
5 30
29 3
9 10
23 24
22 26
31 16
13 18
8 17
15 15
7 15
16 2
20 22
13 1
28 7
3 29
12 19
2 18
14 ...

output:

0

result:

ok single line: '0'

Test #41:

score: 0
Accepted
time: 975ms
memory: 96768kb

input:

900
2 21
1 26
30 28
22 18
4 13
22 12
5 5
25 4
10 23
4 4
25 15
19 4
22 16
21 6
30 4
24 16
17 10
3 17
18 16
27 16
10 6
14 17
25 8
22 4
17 12
29 1
17 11
9 28
18 17
25 9
11 24
18 5
4 10
14 24
11 12
6 13
27 28
29 18
20 26
10 1
6 14
16 17
24 2
24 13
10 5
27 29
28 14
15 17
2 29
1 11
8 28
2 25
21 14
29 27
1...

output:

0

result:

ok single line: '0'

Test #42:

score: 0
Accepted
time: 32ms
memory: 37736kb

input:

1
-4 -1

output:

0

result:

ok single line: '0'

Test #43:

score: 0
Accepted
time: 41ms
memory: 38032kb

input:

2
-3 2
-4 -3

output:

0

result:

ok single line: '0'

Test #44:

score: 0
Accepted
time: 31ms
memory: 38824kb

input:

3
2 -3
-5 2
-3 3

output:

1

result:

ok single line: '1'

Test #45:

score: 0
Accepted
time: 43ms
memory: 38040kb

input:

4
-2 -3
-5 -4
3 2
0 4

output:

2

result:

ok single line: '2'

Test #46:

score: 0
Accepted
time: 25ms
memory: 39372kb

input:

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

output:

3

result:

ok single line: '3'

Test #47:

score: 0
Accepted
time: 36ms
memory: 39280kb

input:

6
-1 -5
3 -4
-3 2
-5 0
4 3
0 -5

output:

2

result:

ok single line: '2'

Test #48:

score: 0
Accepted
time: 36ms
memory: 37932kb

input:

7
2 0
-3 -3
2 -3
1 5
5 1
-2 -3
5 3

output:

4

result:

ok single line: '4'

Test #49:

score: 0
Accepted
time: 36ms
memory: 38212kb

input:

8
0 -4
4 5
5 -2
-1 0
1 -2
-3 5
-2 -5
-4 4

output:

5

result:

ok single line: '5'

Test #50:

score: 0
Accepted
time: 45ms
memory: 36960kb

input:

9
3 -3
-3 -4
-4 -5
2 -4
1 4
4 -2
-3 3
-4 -2
1 2

output:

5

result:

ok single line: '5'

Test #51:

score: 0
Accepted
time: 43ms
memory: 38520kb

input:

10
5 5
2 5
-1 2
-1 -2
-1 3
1 2
3 -3
0 -2
-1 1
4 -4

output:

6

result:

ok single line: '6'