QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#314116#1292. Circuit Board DesignqiuzxAC ✓2ms4340kbC++17916b2024-01-25 12:52:522024-01-25 12:52:53

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 4296kb

input:

1000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 52
52 53
...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
2.000000000000000 0.000000000000000
3.000000000000000 0.000000000000000
4.000000000000000 0.000000000000000
5.000000000000000 0.000000000000000
6.000000000000000 0.000000000000000
7.000000000000000 0.000000000000000
8.0000000000...

result:

ok 

Test #2:

score: 0
Accepted
time: 0ms
memory: 4160kb

input:

1000
65 761
553 278
364 774
438 818
222 364
880 271
926 557
121 179
725 62
181 676
986 285
910 186
607 389
66 15
874 248
51 113
443 68
64 312
227 216
539 518
749 678
836 886
948 84
292 829
777 448
392 570
639 953
211 327
561 938
480 441
727 83
958 773
714 804
675 488
848 981
728 808
440 444
398 752
...

output:

0.000000000000000 0.000000000000000
22.000000000000000 0.000000000000000
643.638953618143422 309.071023205575542
454.333379024571828 218.167781086288619
526.449788393551483 252.797587607921733
149.641549440632785 71.856848532388712
283.000000000000000 0.000000000000000
382.216969655592174 183.537974...

result:

ok 

Test #3:

score: 0
Accepted
time: 1ms
memory: 4300kb

input:

1000
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
8 16
8 17
9 18
9 19
10 20
10 21
11 22
11 23
12 24
12 25
13 26
13 27
14 28
14 29
15 30
15 31
16 32
16 33
17 34
17 35
18 36
18 37
19 38
19 39
20 40
20 41
21 42
21 43
22 44
22 45
23 46
23 47
24 48
24 49
25 50
25 51
26 52
26 53
27 54
27 ...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
0.694783908357673 0.719218548625685
2.000000000000000 0.000000000000000
1.920845480141026 0.389927687788188
1.389567816715347 1.438437097251369
1.054129304363564 1.652423181259583
3.000000000000000 0.000000000000000
2.9801675471...

result:

ok 

Test #4:

score: 0
Accepted
time: 0ms
memory: 4140kb

input:

1000
819 887
138 446
936 977
355 197
734 909
767 836
207 892
736 897
807 359
180 214
317 632
671 272
816 68
170 565
77 96
511 655
245 334
715 760
57 946
987 907
752 841
227 940
908 864
685 45
467 3
315 144
646 951
427 694
540 817
822 301
353 451
803 530
318 392
516 184
302 920
320 44
567 533
264 241...

output:

0.000000000000000 0.000000000000000
6.853353261484879 3.016939067647657
14.788926237432418 1.953176436405724
14.700127659168979 4.881005597403473
10.999437438460627 0.100528861669098
11.834088424855851 7.477750759112847
14.646325343470371 2.502882138250927
10.496755438789527 4.786684685263035
13.688...

result:

ok 

Test #5:

score: 0
Accepted
time: 1ms
memory: 4160kb

input:

1000
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
1 32
1 33
1 34
1 35
1 36
1 37
1 38
1 39
1 40
1 41
1 42
1 43
1 44
1 45
1 46
1 47
1 48
1 49
1 50
1 51
1 52
1 53
1 54
1 55
1 56
1 57
1 58
1 59
1 60
1 61
1 6...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
0.999998766299704 0.001570795680831
0.999995065201858 0.003141587485880
0.999988896715596 0.004712371539373
0.999980260856137 0.006283143965559
0.999969157644790 0.007853900888711
0.999955587108950 0.009424638433144
0.9999395492...

result:

ok 

Test #6:

score: 0
Accepted
time: 1ms
memory: 4136kb

input:

1000
183 171
183 657
183 966
183 197
183 604
183 391
183 59
183 330
183 424
183 436
183 113
183 708
183 366
183 557
183 431
183 446
183 105
183 836
183 196
183 795
183 64
183 117
183 994
183 892
183 396
183 776
183 267
183 594
183 315
183 726
183 224
183 274
183 158
183 972
183 952
183 469
183 347
1...

output:

0.000000000000000 0.000000000000000
1.072193771882861 0.997390625232324
1.140901231937583 0.990023657716558
1.863131262220364 0.504979627487963
1.974877954055121 0.222739701663850
1.993432810379527 0.114417005997516
1.938191335922484 0.346117057077493
1.037690182669935 0.999289472640589
1.8297201366...

result:

ok 

Test #7:

score: 0
Accepted
time: 1ms
memory: 4188kb

input:

1000
1 2
1 3
3 4
3 5
5 6
5 7
7 8
7 9
9 10
9 11
11 12
11 13
13 14
13 15
15 16
15 17
17 18
17 19
19 20
19 21
21 22
21 23
23 24
23 25
25 26
25 27
27 28
27 29
29 30
29 31
31 32
31 33
33 34
33 35
35 36
35 37
37 38
37 39
39 40
39 41
41 42
41 43
43 44
43 45
45 46
45 47
47 48
47 49
49 50
49 51
51 52
51 53
5...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
0.999998766299704 0.001570795680831
1.999997532599407 0.003141591361662
1.999993831501562 0.004712383166710
2.999988896703420 0.007853970652590
2.999982728217158 0.009424754706084
3.999971624932754 0.014137126245457
3.9999629890...

result:

ok 

Test #8:

score: 0
Accepted
time: 2ms
memory: 4312kb

input:

1000
230 441
949 387
737 325
553 628
864 851
308 601
499 110
587 452
528 813
750 726
638 582
247 984
549 674
144 429
852 403
645 15
435 640
437 354
497 33
9 301
635 626
509 622
191 536
72 934
238 581
979 505
102 83
305 975
469 571
192 623
277 579
224 205
845 576
263 684
9 815
20 372
498 799
281 458
...

output:

0.000000000000000 0.000000000000000
95.921046118554483 3.411975568691756
3.785389877637944 4.282825610564369
200.289238139287979 14.629097297730360
199.315420641810850 14.401766082083713
45.812359525856664 1.397848722750764
37.199669120704080 33.405255144488100
111.758929657751330 110.09629341548337...

result:

ok 

Test #9:

score: 0
Accepted
time: 0ms
memory: 4028kb

input:

2
1 2

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000

result:

ok 

Test #10:

score: 0
Accepted
time: 0ms
memory: 4232kb

input:

1000
1 2
1 3
1 4
3 5
3 6
3 7
5 8
5 9
5 10
9 11
9 12
9 13
13 14
13 15
13 16
15 17
15 18
15 19
18 20
18 21
18 22
20 23
20 24
20 25
23 26
23 27
23 28
27 29
27 30
27 31
31 32
31 33
31 34
33 35
33 36
33 37
37 38
37 39
37 40
39 41
39 42
39 43
43 44
43 45
43 46
45 47
45 48
45 49
47 50
47 51
47 52
50 53
50 ...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
0.999998766299704 0.001570795680831
0.003141587485880 0.999995065201858
1.999997532599407 0.003141591361662
1.007852667188415 1.001539953325621
1.006281910265263 1.001551056536968
2.999996298899111 0.004712387042493
2.9999925978...

result:

ok 

Test #11:

score: 0
Accepted
time: 1ms
memory: 4028kb

input:

135
46 63
35 41
56 36
46 119
108 64
113 98
66 27
73 7
24 109
49 108
23 1
69 22
8 32
39 82
7 130
114 16
36 80
129 50
51 39
7 3
121 59
124 133
93 23
69 44
124 85
48 122
27 14
108 135
104 25
104 5
44 87
66 106
94 78
18 4
28 104
56 118
133 61
44 18
62 68
108 70
45 26
10 125
30 54
17 74
44 95
123 126
59 ...

output:

0.000000000000000 0.000000000000000
12.959925238381905 0.765060277859020
5.950902462894401 0.540527260813522
9.987436081787469 0.346824547781292
5.999992597801265 0.006283178847541
12.972097517219235 0.652624155814982
4.967457257899072 0.359321497186385
5.999652113227793 0.034554792012880
8.99552757...

result:

ok 

Test #12:

score: 0
Accepted
time: 1ms
memory: 4112kb

input:

627
592 368
39 322
230 497
144 607
494 226
295 161
35 1
481 167
323 207
203 589
146 595
65 465
360 471
221 512
561 62
562 316
206 540
456 551
189 115
503 79
26 486
96 74
419 12
49 433
426 602
199 532
265 87
487 383
573 381
479 415
49 110
559 529
198 473
298 365
312 51
468 315
598 362
59 183
565 125
...

output:

0.000000000000000 0.000000000000000
8.993056004710638 2.368107472435830
11.905858238865969 0.912055872382391
14.911024414845039 1.220254478558636
10.370059362446840 2.005954799798223
13.922274037338506 1.065220051059516
9.665046213376021 3.108953981063802
12.972237952657084 0.663568208735122
14.5773...

result:

ok 

Test #13:

score: 0
Accepted
time: 1ms
memory: 4280kb

input:

533
14 348
158 138
171 511
93 242
516 110
289 14
523 22
284 45
458 101
488 524
362 105
145 228
81 522
130 17
495 13
181 252
46 512
72 131
501 301
364 142
137 365
461 239
19 507
521 352
266 472
45 194
108 41
249 267
30 44
153 346
81 173
38 57
249 458
73 307
345 400
292 38
173 320
482 393
466 10
178 8...

output:

0.000000000000000 0.000000000000000
12.489420357709708 2.493820526592852
12.969335813490160 0.759370541616699
6.107067666002217 2.189568182063474
6.713912798005270 0.846218243165380
11.610768176769301 2.014398559554583
11.007055736908250 3.179610569049382
10.782005591744059 1.409373682747445
11.8155...

result:

ok 

Test #14:

score: 0
Accepted
time: 1ms
memory: 4204kb

input:

638
223 432
636 391
75 130
151 550
274 134
549 351
103 475
93 399
89 258
556 558
262 153
535 216
292 16
424 187
555 281
181 520
382 436
93 122
62 274
274 561
512 532
352 597
550 424
489 181
55 366
348 397
486 28
435 204
209 161
436 631
92 135
350 409
183 100
354 21
140 268
338 568
382 41
626 156
422...

output:

0.000000000000000 0.000000000000000
6.503916881046687 1.816633672674588
8.397696527276261 2.546737289560103
8.748542907120385 1.682372167387884
6.969145398194236 2.880216098522875
8.410123712407551 4.267856299895553
9.399380791731819 2.794621295880571
11.072505564494387 3.911504119875387
5.539817853...

result:

ok 

Test #15:

score: 0
Accepted
time: 1ms
memory: 4088kb

input:

300
253 83
57 111
74 109
67 151
10 55
285 52
76 259
225 288
159 88
10 120
36 286
145 54
124 219
299 148
281 296
170 244
239 160
24 31
81 154
224 149
66 162
64 291
239 96
275 191
85 40
138 25
5 257
60 165
275 47
62 185
229 87
275 242
84 236
25 135
24 79
165 110
25 189
15 13
156 24
50 163
293 16
191 9...

output:

0.000000000000000 0.000000000000000
11.163651027190222 3.846158659952096
6.709343275177205 1.550711188214504
7.867214147418045 1.122883788629076
6.991827781771596 0.292011317714108
9.805407250096188 1.617286376670070
8.913107941128286 1.026807342113958
4.981681854413015 0.289640339381508
5.996500495...

result:

ok 

Test #16:

score: 0
Accepted
time: 1ms
memory: 4072kb

input:

161
135 76
71 102
124 78
146 9
92 59
134 85
126 143
114 155
35 137
139 64
20 54
54 40
114 32
144 13
114 68
29 110
84 4
116 90
57 35
37 23
27 14
114 69
73 151
64 66
71 136
60 95
144 11
127 160
94 117
47 126
31 49
136 92
127 77
125 132
120 53
25 100
83 3
74 48
124 38
136 87
115 99
126 152
28 86
28 19
...

output:

0.000000000000000 0.000000000000000
9.940654446365169 0.875288863030885
5.996288561233956 0.149164080855156
5.990803415887413 0.227507065574553
6.993880020822441 0.219796435296410
6.991720329078239 0.251137360174710
7.990059993876749 0.310800720468886
5.999993831501562 0.004712383166710
7.9000674372...

result:

ok 

Test #17:

score: 0
Accepted
time: 0ms
memory: 4224kb

input:

989
723 716
646 872
985 597
934 730
47 217
76 661
499 466
41 286
331 939
529 388
38 555
437 888
266 84
563 959
621 749
468 348
122 36
701 287
58 511
441 395
52 59
261 488
120 142
13 814
735 242
890 178
51 746
246 48
544 102
890 343
122 847
945 790
850 427
650 741
92 442
702 224
37 111
873 294
198 80...

output:

0.000000000000000 0.000000000000000
9.593407374712267 4.243162441697176
5.068648810820632 7.003772186162899
5.158724010731411 1.468485677938706
8.717355279715352 8.411446795816853
6.987133222005004 0.327953114163993
8.486718246412133 7.432325192358402
10.235534781471385 5.029127123806879
9.831442439...

result:

ok 

Test #18:

score: 0
Accepted
time: 1ms
memory: 4060kb

input:

39
38 20
15 38
19 3
26 16
19 1
7 23
16 27
31 6
19 9
15 2
8 37
16 35
8 12
30 32
1 17
29 8
15 26
10 11
26 18
22 10
15 19
17 13
3 33
19 22
22 7
22 14
37 28
26 5
38 24
38 39
11 29
22 21
22 25
17 30
3 31
21 4
29 34
34 36

output:

0.000000000000000 0.000000000000000
2.999869229564543 0.021990596926744
2.000000000000000 0.000000000000000
3.997568756208336 0.117775045433421
3.999603994563434 0.045550594293037
3.999997532599407 0.003141591361662
2.998809616069778 0.067529716025562
5.998217408636190 0.133501820235262
1.9999802608...

result:

ok 

Test #19:

score: 0
Accepted
time: 0ms
memory: 4180kb

input:

429
150 408
322 291
266 66
329 218
402 55
189 102
93 141
402 283
217 281
318 24
25 309
107 16
267 45
303 227
260 232
123 84
273 391
377 284
429 191
273 32
386 39
184 2
383 397
142 297
392 371
348 17
208 46
275 181
394 65
12 164
297 276
289 51
365 386
422 175
108 298
397 200
99 422
222 243
275 367
11...

output:

0.000000000000000 0.000000000000000
7.937878374150948 0.657141458388757
9.409577173016521 2.615790947112042
10.871012417812601 1.287021888116965
3.000000000000000 0.000000000000000
8.952739310312117 0.603595128425216
9.994350641835748 0.270092770004519
9.419727606997260 2.596282645221429
7.752548576...

result:

ok 

Test #20:

score: 0
Accepted
time: 1ms
memory: 4332kb

input:

1000
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30
30 31
31 32
32 33
33 34
34 35
35 36
36 37
37 38
38 39
39 40
40 41
41 42
42 43
43 44
44 45
45 46
46 47
47 48
48 49
49 50
50 51
51 52
52 53
...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
2.000000000000000 0.000000000000000
3.000000000000000 0.000000000000000
4.000000000000000 0.000000000000000
5.000000000000000 0.000000000000000
6.000000000000000 0.000000000000000
7.000000000000000 0.000000000000000
8.0000000000...

result:

ok 

Test #21:

score: 0
Accepted
time: 1ms
memory: 4340kb

input:

1000
955 799
959 651
864 679
622 459
622 511
42 753
622 227
622 94
622 444
299 234
622 295
622 219
622 205
622 897
771 406
689 415
646 86
357 351
622 212
622 300
622 951
622 904
622 262
622 772
678 83
241 564
882 798
622 285
479 968
859 271
622 296
413 26
622 755
622 190
622 884
3 736
622 759
326 57...

output:

0.000000000000000 0.000000000000000
185.505639249116079 164.215313187519257
33.867401323729180 29.252930284416386
206.421258273307376 182.830814277602412
276.637979283092442 245.325710794310146
1.765483213493088 0.643455864733779
1.999289472640589 0.037690182669935
1.990023657716558 0.14090123193758...

result:

ok 

Test #22:

score: 0
Accepted
time: 1ms
memory: 4212kb

input:

1000
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
1 32
1 33
1 34
1 35
1 36
1 37
1 38
1 39
1 40
1 41
1 42
1 43
1 44
1 45
1 46
1 47
1 48
1 49
1 50
1 51
1 52
1 53
1 54
1 55
1 56
1 57
1 58
1 59
1 60
1 61
1 6...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
0.987441395501721 0.157985728626399
0.950081019100772 0.312003296688415
0.888857259179405 0.458184212739893
0.805307885711122 0.592856820161059
0.701531425770856 0.712638518925205
0.580134454391849 0.814520727070509
0.4441661246...

result:

ok 

Test #23:

score: 0
Accepted
time: 1ms
memory: 4224kb

input:

1000
687 479
95 429
175 205
95 687
762 563
682 776
762 419
175 47
142 387
175 494
376 963
687 412
376 817
142 458
201 238
175 143
762 572
142 381
95 801
687 618
762 323
682 685
762 655
201 287
687 513
762 334
682 702
175 438
682 745
121 886
58 731
762 41
201 360
58 10
142 120
682 35
201 176
201 566
...

output:

0.000000000000000 0.000000000000000
3.996021305297582 0.147576984360170
3.312953192735557 1.541980450969324
3.273902143794165 1.571061708382559
3.593753233766034 1.244667667453916
3.606154431188110 1.228444640654441
3.321572096707603 1.535152865003704
2.507022118158635 1.970989712041477
2.9738163454...

result:

ok 

Test #24:

score: 0
Accepted
time: 1ms
memory: 4308kb

input:

1000
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
2 32
2 33
2 34
2 35
2 36
2 37
2 38
2 39
2 40
2 41
2 42
2 43
2 44
2 45
2 46
2 47
2 48
2 49
2 50
2 51
2 52
2 53
2 54
2 55
2 56
2 57
2 58
2 59
2 60
2 61
3 6...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
0.987688340595138 0.156434465040231
0.978903065146621 0.204325204139262
0.967797100328865 0.251731548668497
0.954396775096603 0.298541112219414
0.938733857653874 0.344642923174517
0.920845480141026 0.389927687788188
0.9007740506...

result:

ok 

Test #25:

score: 0
Accepted
time: 1ms
memory: 4232kb

input:

1000
328 317
776 347
862 418
328 311
645 81
524 299
814 615
285 907
187 942
678 757
746 877
26 516
846 640
814 456
524 966
135 587
484 873
444 959
923 529
54 888
678 920
444 690
782 314
244 691
648 371
328 350
26 266
413 319
26 583
978 711
285 383
24 956
433 85
746 610
54 437
814 878
436 546
923 781...

output:

0.000000000000000 0.000000000000000
3.900922010943190 0.641436925698466
3.494674909449595 1.348805394574098
3.998615958382087 0.084805984507466
2.535107653364417 1.947441097489240
2.890919766149741 1.810874886979134
3.832794094287158 0.820476220537200
4.468048247327207 1.722534449520757
3.1472246427...

result:

ok 

Test #26:

score: 0
Accepted
time: 0ms
memory: 4160kb

input:

1000
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
2 12
2 13
2 14
2 15
2 16
2 17
2 18
2 19
2 20
2 21
3 22
3 23
3 24
3 25
3 26
3 27
3 28
3 29
3 30
3 31
4 32
4 33
4 34
4 35
4 36
4 37
4 38
4 39
4 40
4 41
5 42
5 43
5 44
5 45
5 46
5 47
5 48
5 49
5 50
5 51
6 52
6 53
6 54
6 55
6 56
6 57
6 58
6 59
6 60
6 61
7 6...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
0.984838045336978 0.173476293645098
0.939811951086320 0.341692107891483
0.866287084447387 0.499546481640743
0.766493006809350 0.642252653176584
0.643455864733779 0.765483213493088
0.500906625360710 0.865501330253019
0.3431679388...

result:

ok 

Test #27:

score: 0
Accepted
time: 1ms
memory: 4236kb

input:

1000
379 70
15 572
297 546
116 876
382 377
152 208
990 8
547 445
105 320
874 29
105 167
469 57
966 267
11 874
680 689
675 946
67 758
726 438
133 920
612 616
898 852
718 576
818 890
328 684
295 725
219 98
920 944
830 589
11 105
47 231
152 786
353 259
93 547
680 622
47 300
552 767
817 121
949 117
496 ...

output:

0.000000000000000 0.000000000000000
5.954369542799101 0.608693638448637
5.851609697308612 1.047173591648988
5.330531861703518 2.020705434704850
3.356529620687188 2.107704426971342
3.988988310511763 0.219526331933154
3.995993006138644 0.136576391781845
3.843875553367541 3.010443295957513
2.0360649974...

result:

ok 

Test #28:

score: 0
Accepted
time: 1ms
memory: 4192kb

input:

1000
1 2
1 3
1 4
2 5
2 6
2 7
3 8
3 9
3 10
4 11
4 12
4 13
5 14
5 15
5 16
6 17
6 18
6 19
7 20
7 21
7 22
8 23
8 24
8 25
9 26
9 27
9 28
10 29
10 30
10 31
11 32
11 33
11 34
12 35
12 36
12 37
13 38
13 39
13 40
14 41
14 42
14 43
15 44
15 45
15 46
16 47
16 48
16 49
17 50
17 51
17 52
18 53
18 54
18 55
19 56
...

output:

0.000000000000000 0.000000000000000
1.000000000000000 0.000000000000000
0.840944582298169 0.541121252126876
0.414375580993284 0.910105970684996
2.000000000000000 0.000000000000000
1.981991701120997 0.188924055984121
1.928615402141017 0.371043710237051
1.681889164596338 1.082242504253752
1.5645143614...

result:

ok 

Test #29:

score: 0
Accepted
time: 0ms
memory: 4260kb

input:

1000
18 101
853 602
290 632
35 998
55 864
920 486
751 806
225 12
679 590
522 403
751 629
711 587
959 929
538 968
145 126
642 340
287 911
847 416
42 533
519 61
885 862
153 409
16 992
815 370
451 33
39 851
551 572
424 838
659 460
112 22
45 665
719 325
73 214
274 711
283 623
920 674
297 729
667 133
878...

output:

0.000000000000000 0.000000000000000
9.839752910699120 3.466458167421635
11.710359847978745 2.008185180540419
7.190813468057932 4.660139204223051
9.682076780749999 4.968795739196303
9.750845862523828 3.568142784629653
9.155818469920527 4.116202140346284
4.190312215704063 4.052885892720054
6.723452572...

result:

ok 

Test #30:

score: 0
Accepted
time: 1ms
memory: 4216kb

input:

1000
54 326
815 326
174 54
200 326
107 200
746 107
182 107
287 326
512 182
798 512
131 798
245 131
936 287
724 174
236 174
629 326
339 245
911 512
218 200
868 629
212 218
617 746
940 815
406 936
366 746
145 218
788 107
656 174
413 617
121 245
794 107
45 656
15 131
166 413
673 45
745 794
151 45
60 17...

output:

0.000000000000000 0.000000000000000
12.710798660188349 2.005372757780177
6.240940613554777 1.632661833344334
6.263520599467508 3.297148034790082
2.968386016080150 3.832574928390434
5.930878822296481 6.967653240828007
4.409939186882327 4.380401225487889
4.165246243935426 5.545165050571474
2.658644842...

result:

ok 

Test #31:

score: 0
Accepted
time: 1ms
memory: 4192kb

input:

1000
7 9
994 122
143 27
780 619
237 483
374 497
488 374
592 56
838 765
35 1
812 389
512 565
243 847
346 417
69 165
611 802
372 606
334 362
427 687
543 180
143 531
448 750
487 39
790 861
294 534
94 6
12 613
41 222
815 577
19 655
495 553
962 718
534 677
102 74
74 8
626 334
918 193
48 544
2 1
1 11
444 ...

output:

0.000000000000000 0.000000000000000
0.998962637240549 0.045537340693184
0.187381314585725 0.982287250728689
1.794858983921565 0.650970248074186
1.938774588326869 0.387229448584668
2.878586539413188 0.728921556476151
0.147118911838637 0.989118812771962
3.805443135053309 1.104337127701434
0.2942378236...

result:

ok 

Test #32:

score: 0
Accepted
time: 0ms
memory: 4328kb

input:

1000
484 96
142 130
194 415
759 192
312 866
473 948
669 707
121 382
70 659
212 844
123 932
42 672
240 935
133 873
409 11
7 418
115 158
408 38
405 218
714 767
996 530
393 986
737 447
782 439
989 745
723 861
849 466
885 458
895 368
44 200
923 726
670 492
805 726
659 263
76 52
363 823
511 396
475 836
7...

output:

0.000000000000000 0.000000000000000
6.671201198218268 3.073895846034132
14.787138549594876 2.051408804110839
6.924694932380876 2.991827418585508
8.362708685782194 3.367241930956435
7.573636878215747 3.826074595408889
8.473694804826331 1.843487780377272
8.685996983499575 1.478620500994160
8.545717759...

result:

ok 

Test #33:

score: 0
Accepted
time: 1ms
memory: 4256kb

input:

1000
779 784
64 102
250 235
617 468
966 543
721 87
126 277
896 166
21 782
87 404
637 647
53 630
549 302
658 87
880 87
87 667
495 995
330 460
516 154
993 646
558 87
87 43
304 189
87 1
377 523
846 902
87 725
498 743
87 555
221 87
433 413
808 87
780 87
603 765
256 196
785 804
87 518
187 568
329 86
87 1...

output:

0.000000000000000 0.000000000000000
2.023486000228690 1.718277162548545
2.980047315433115 0.281802463875165
2.970756352626468 0.340762965391515
2.671614722736541 1.098045635996263
1.445479403327700 1.949755908110242
1.266901989320376 0.963723678290010
2.999583023703962 0.040837866189601
2.4208621596...

result:

ok 

Test #34:

score: 0
Accepted
time: 1ms
memory: 4208kb

input:

1000
618 371
516 405
969 986
918 45
582 943
660 464
385 538
458 306
817 223
577 29
551 364
64 714
4 407
149 211
23 281
695 840
823 520
24 702
593 958
348 256
135 444
445 593
706 177
72 894
729 388
557 715
692 176
538 920
827 519
720 136
370 697
617 391
348 566
78 152
617 555
972 29
776 593
856 215
5...

output:

0.000000000000000 0.000000000000000
2.808458384191099 5.941727272359240
6.598725791579452 3.193607619283119
5.073952993531078 2.959455908096831
6.741539412988713 1.351322225898465
2.900783145769222 5.933702601642399
2.257707460133813 0.980333027319747
4.981273818740698 0.303895428067953
6.4249443480...

result:

ok 

Test #35:

score: 0
Accepted
time: 1ms
memory: 4220kb

input:

1000
648 278
793 733
99 720
309 232
264 783
869 627
599 985
487 790
741 422
109 386
441 227
48 38
526 48
473 82
484 733
33 680
905 145
643 693
155 648
648 417
712 863
150 530
38 692
176 128
790 287
348 720
33 82
22 352
801 790
211 648
369 82
446 733
33 336
657 54
193 33
790 172
25 728
854 366
241 76...

output:

0.000000000000000 0.000000000000000
1.616882640072607 1.863644010978838
1.222930692205887 3.993658110122436
2.968971373487626 0.248738929790872
1.495458668432408 0.868631514438191
3.729366828546676 1.244420731381467
4.190452872380406 6.227009221621769
1.573147221089020 1.868263942805240
3.5261110580...

result:

ok 

Test #36:

score: 0
Accepted
time: 1ms
memory: 4332kb

input:

1000
814 923
286 969
635 622
257 260
677 969
431 935
969 668
900 366
678 245
402 882
555 431
190 15
389 655
257 981
55 481
55 111
662 570
124 470
222 969
945 757
582 170
47 612
709 431
451 606
15 244
561 463
655 995
670 781
458 99
613 969
781 692
431 719
207 99
222 381
969 402
588 5
66 621
333 321
2...

output:

0.000000000000000 0.000000000000000
6.060276904707096 6.546023858993824
2.874777781049049 0.489216662383771
3.589159450071482 2.219702745682114
3.744980910861190 0.981954854533283
4.908595763433771 0.735308105070779
5.513473052233811 3.496077535090532
3.983621561266488 0.260053290168047
7.9107865452...

result:

ok 

Test #37:

score: 0
Accepted
time: 1ms
memory: 4236kb

input:

1000
966 967
686 699
989 471
513 855
521 583
526 930
67 577
369 186
949 590
927 649
331 302
479 960
30 266
266 45
250 872
298 382
795 825
329 526
64 52
485 972
623 466
529 653
521 76
473 918
461 259
716 139
179 634
981 632
315 710
88 211
275 800
934 137
379 652
124 956
973 233
715 165
578 788
108 53...

output:

0.000000000000000 0.000000000000000
6.725054047607353 1.260527279041249
4.756618975714111 5.961259198516452
5.975866151975171 0.317604113262184
8.917282329493034 0.909091383666242
9.487471626089990 5.712545718136942
4.621900066181157 4.970019333388307
6.695695845016621 2.875567606185533
7.4864948252...

result:

ok