QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#317943#6639. Disk Treeucup-team1005WA 7ms3832kbC++141.4kb2024-01-29 23:52:262024-01-29 23:52:26

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3700kb

input:

3
1 0 3
10 10 6
0 5 1

output:

YES
0 6 10 6
1 3 0 4

result:

ok answer = 1

Test #2:

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

input:

2
1 1 1
3 3 1

output:

YES
1 2 3 2

result:

ok answer = 1

Test #3:

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

input:

5
10 10 10
2 0 1
20 20 1
3 20 1
20 0 1

output:

YES
3 21 20 21
10 20 20 20
20 1 10 1
2 1 10 1

result:

ok answer = 1

Test #4:

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

input:

10
29 29 2
28 55 10
99 81 4
17 82 10
45 88 10
48 68 10
0 8 10
98 95 10
34 0 10
17 24 10

output:

YES
45 98 98 98
17 92 45 92
99 85 98 85
48 78 99 78
28 65 48 65
17 34 28 45
29 31 17 31
0 18 17 18
34 10 0 10

result:

ok answer = 1

Test #5:

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

input:

100
490 783 12
666 460 55
561 245 6
223 323 25
3 520 77
225 161 24
514 190 16
997 914 100
412 265 100
374 610 36
296 854 39
601 901 2
307 21 100
390 422 24
940 414 32
332 438 35
553 992 100
235 775 3
656 901 37
770 417 22
649 305 100
448 84 3
375 939 77
910 847 9
776 357 37
743 97 100
371 502 39
508...

output:

YES
375 1016 553 1016
997 1014 553 1014
67 1012 375 1012
235 990 375 990
293 974 375 974
777 948 997 948
656 938 777 938
841 930 997 930
468 908 553 908
601 903 656 903
116 903 235 903
296 893 375 893
680 864 841 864
910 856 997 856
51 855 116 855
771 846 841 846
384 846 468 846
32 818 116 818
584 8...

result:

ok answer = 1

Test #6:

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

input:

200
2948 9798 687
3897 647 35
3918 587 28
1262 2717 206
1315 9524 20
2381 305 1000
4344 6858 20
6234 8949 53
5168 4772 85
5044 6109 158
72 7670 132
7300 1213 837
5427 2263 1000
1785 3009 276
6136 1421 43
1629 5620 29
6445 9489 242
8443 3141 1000
4118 4307 63
1874 5238 291
1964 5785 73
7794 3934 18
3...

output:

YES
9505 10421 2948 10421
5225 10253 9505 10253
7511 10194 9505 10194
6125 10135 7511 10135
8438 10062 9505 10062
1844 9925 2948 9925
6062 9835 6125 9835
6445 9731 7511 9731
231 9613 1844 9613
1756 9604 1844 9604
462 9581 1756 9581
1315 9544 1756 9544
413 9413 462 9413
456 9287 1756 9287
9928 9282 8...

result:

ok answer = 1

Test #7:

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

input:

300
42942 37079 222
49441 21821 1695
61023 31153 561
86630 26307 352
36940 78253 213
7841 81086 626
47425 22290 374
17694 68695 648
38259 64794 998
43599 46942 9662
9204 2816 1965
38652 83568 4057
4046 29001 1034
72591 63214 587
75984 64859 1112
70005 72177 576
34522 52126 652
56627 48785 1747
78820...

output:

YES
70298 104974 48815 104974
11003 102828 48815 102828
31276 102195 48815 102195
82276 101921 70298 101921
1522 101761 11003 101761
96182 100285 82276 100285
59314 97023 70298 97023
84773 96418 96182 96418
21145 95651 31276 95651
90608 93033 96182 93033
81067 92477 84773 92477
56990 92327 70298 923...

result:

ok answer = 1

Test #8:

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

input:

1000
558504245 246224785 100000000
971981730 913036757 1821458
198791767 482624549 5998171
540520619 353988177 8924682
183178222 46223569 9859905
118485076 22129062 7497235
274928891 417171180 372954
230079763 468235825 289869
859092765 562864738 5551376
129036518 743777318 3969979
265158223 3092933...

output:

YES
780028901 1000000000 899025782 1000000000
749675535 1000000000 780028901 1000000000
665515418 1000000000 749675535 1000000000
633662940 1000000000 665515418 1000000000
593944789 1000000000 633662940 1000000000
500090508 1000000000 593944789 1000000000
309812694 1000000000 500090508 1000000000
19...

result:

ok answer = 1

Test #9:

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

input:

3000
442876143 334276354 3627270
526253918 947313397 2498956
566692880 229330019 4243066
497859604 658736917 13012787
315969653 65582717 1400013
394215653 932651144 1655676
58249045 973232518 860150
860773683 959388251 1594726
23803673 921365885 5926749
730359196 818999592 1521282
971839312 22835235...

output:

YES
876545525 1000000000 985365189 1000000000
857147272 1000000000 876545525 1000000000
819551224 1000000000 857147272 1000000000
777245135 1000000000 819551224 1000000000
744855801 1000000000 777245135 1000000000
692360891 1000000000 744855801 1000000000
680140525 1000000000 692360891 1000000000
65...

result:

ok answer = 1

Test #10:

score: 0
Accepted
time: 5ms
memory: 3832kb

input:

7000
601805179 978984160 464352
918208048 607538668 2214109
328147216 806677103 3901695
961794394 719893281 1114470
453816635 992288784 274949
778724702 692479905 1170018
169287513 886715521 576156
812072299 118324465 93778
726229729 150105801 3593039
368683874 642143790 1277375
40087476 151799345 4...

output:

YES
921988245 1000000000 999919062 1000000000
791912424 1000000000 921988245 1000000000
754945065 1000000000 791912424 1000000000
750176760 1000000000 754945065 1000000000
746090523 1000000000 750176760 1000000000
679434403 1000000000 746090523 1000000000
619595203 1000000000 679434403 1000000000
59...

result:

ok answer = 1

Test #11:

score: -100
Wrong Answer
time: 7ms
memory: 3760kb

input:

10000
645 4710 5
1554 4072 7
6505 2760 1
6125 8212 11
9802 9537 3
6584 4356 6
1104 6649 23
4580 2623 20
3107 2460 1
4689 1662 2
7815 161 14
8718 3658 28
2900 63 15
1741 7296 44
8380 4608 50
2212 8514 4
7919 3069 17
1638 6057 3
504 9867 18
7869 8021 14
866 9239 5
3452 8042 4
9049 7222 4
4447 1004 5
9...

output:

YES
8723 10613 4005 10613
5630 10570 8723 10570
115 10352 4005 10352
7391 10338 8723 10338
9847 10094 8723 10094
2240 10086 4005 10086
1195 10076 2240 10076
845 10056 1195 10056
6424 10051 7391 10051
1806 10047 2240 10047
1032 10032 1195 10032
6596 10031 7391 10031
534 10025 845 10025
6774 10018 739...

result:

wrong answer Two line segments intersect, and it's not only the endpoints that intersect or line segments intersects/touches more than 2 disks