QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#282110#68. Designated Citiesznstz16 360ms77544kbC++204.0kb2023-12-11 13:39:232023-12-11 13:39:24

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 6
Accepted
time: 4ms
memory: 17504kb

input:

2
1 2 781089648 283888890
2
1
2

output:

283888890
0

result:

ok 2 lines

Test #2:

score: -6
Wrong Answer
time: 0ms
memory: 20212kb

input:

16
6 10 160848335 124052868
7 1 241203243 110601447
14 6 290972019 163072373
11 15 938517011 154373610
12 1 138651641 741445657
7 8 60218933 280830068
16 15 203079209 633547400
11 7 199606763 919756826
14 12 266702877 916493997
15 13 905937802 481991969
2 10 234605456 722866810
3 5 366455156 4966982...

output:

6311369523
2092762454
3071651344
3671429747
4268132154
4698805523
5031368358
5307328811
5526053104
5701711849
5856442326
6039533650
6195475982
6371251428
6524267743
6665684386

result:

wrong answer 3rd lines differ - expected: '966156735', found: '3071651344'

Subtask #2:

score: 7
Accepted

Test #12:

score: 7
Accepted
time: 4ms
memory: 17744kb

input:

2
1 2 683402985 526289818
1
1

output:

526289818

result:

ok single line: '526289818'

Test #13:

score: 0
Accepted
time: 309ms
memory: 48488kb

input:

200000
30498 170310 456566691 649436035
88553 73637 443596936 376869783
157116 8270 670934073 119072463
24742 48732 237943289 398782798
118620 71333 841086509 861755957
91523 118037 345609124 755508586
182978 92078 999023640 247489369
57480 73002 550952716 31090859
85037 151494 615937607 181113974
8...

output:

100090261531134

result:

ok single line: '100090261531134'

Test #14:

score: 0
Accepted
time: 322ms
memory: 77544kb

input:

200000
62380 190510 660465798 980286669
73494 59167 399860395 883378826
78917 156327 617261054 354160980
25845 163881 79154538 824380095
97426 144191 891448990 704743172
73271 43633 837335594 922276690
193758 169742 364918510 151494521
62996 52874 828453581 144363372
199529 178275 804482094 11831376...

output:

100066669866017

result:

ok single line: '100066669866017'

Test #15:

score: 0
Accepted
time: 260ms
memory: 49120kb

input:

200000
183258 143073 982 982
31786 177754 580 580
26332 6792 85 85
6390 70312 847 847
193105 75442 735 735
172433 196956 999926081 999926081
114861 33150 991 991
108634 161301 206 206
122529 105025 426 426
21388 86201 300 300
170711 87982 999923960 999923960
120595 43763 921 921
99462 120013 737 737...

output:

81103004367189

result:

ok single line: '81103004367189'

Test #16:

score: 0
Accepted
time: 299ms
memory: 47584kb

input:

200000
1539 92316 48323903 202410877
35890 69243 415172828 308900141
190963 50985 755719943 159735479
72146 159885 72946173 622268672
127505 64851 485107488 958218451
43378 89830 417162770 911217276
158176 69012 355971119 826228739
146386 106745 99361947 614603091
190012 95465 758111489 876554997
40...

output:

99944714663527

result:

ok single line: '99944714663527'

Test #17:

score: 0
Accepted
time: 312ms
memory: 52492kb

input:

200000
13693 159720 471504101 851110321
134244 80255 908560356 681906336
52579 127713 744119846 470734684
84038 32991 525544642 941494197
118155 105510 885724375 303139090
24258 176279 806826007 371683303
46557 54039 791816892 13705486
119090 160877 781290926 259135450
21899 55292 338745705 70209065...

output:

100142110488065

result:

ok single line: '100142110488065'

Test #18:

score: 0
Accepted
time: 264ms
memory: 47236kb

input:

200000
51485 158642 829759545 555246994
46408 182427 680884310 952048393
181386 51981 774364250 510078376
158642 137221 958595981 417456152
158642 13560 525026357 666355475
158642 119626 653370640 66503632
23721 100035 260540702 507629954
180546 101304 430322145 698388876
62412 158642 536391228 6818...

output:

100029161376725

result:

ok single line: '100029161376725'

Test #19:

score: 0
Accepted
time: 360ms
memory: 74720kb

input:

200000
172976 108672 288769649 485088836
159642 46318 971501113 486464598
120751 69878 169239703 173145059
44498 138117 820693607 695329677
158520 63527 366383754 437019528
19626 64856 939531671 635492288
21084 66469 694278429 909732840
30440 161053 573714265 203831805
160668 89739 513226897 3644949...

output:

99756547102864

result:

ok single line: '99756547102864'

Test #20:

score: 0
Accepted
time: 232ms
memory: 45196kb

input:

200000
154441 4651 747796649 453770199
137511 154441 46174763 669025918
154441 46408 501310306 365029626
154441 70897 637262505 711161748
149885 154441 906469650 910775313
56604 154441 120489234 529690198
154441 128437 857569560 602188933
154441 12895 528165172 22359068
177797 154441 947733025 70024...

output:

100044587345734

result:

ok single line: '100044587345734'

Subtask #3:

score: 9
Accepted

Test #21:

score: 9
Accepted
time: 0ms
memory: 17660kb

input:

2
2 1 92722556 873785501
1
2

output:

0

result:

ok single line: '0'

Test #22:

score: 0
Accepted
time: 296ms
memory: 48924kb

input:

200000
99982 83075 709942852 92942003
168325 12929 879930937 637190556
85628 123672 784369088 731448156
34917 117619 569166498 663184347
92257 112058 369526210 824568522
32464 109884 258245678 691717157
129594 115097 627894556 937225369
54700 187473 81636213 510866047
52020 197198 577461848 47343465...

output:

99980874607500

result:

ok single line: '99980874607500'

Test #23:

score: 0
Accepted
time: 325ms
memory: 76936kb

input:

200000
95719 149301 794275735 801652183
143736 125721 536375521 497451149
4070 82461 612985394 185791331
187444 177732 203761783 978534058
64389 115859 767852404 159121136
62787 153732 112099169 754249162
9791 45944 722996059 45421943
86166 76684 734259220 976172654
144257 171894 593459611 866106682...

output:

0

result:

ok single line: '0'

Test #24:

score: 0
Accepted
time: 272ms
memory: 49124kb

input:

200000
91072 122945 396 396
108944 92874 371 371
102962 134537 999957708 999957708
76444 112175 999974422 999974422
92013 18283 224 224
47655 149920 674 674
199293 47834 240 240
143059 145065 306 306
135615 109141 702 702
1701 49881 38 38
73750 69655 585 585
44570 126598 823 823
154521 29581 601 601...

output:

81260440461409

result:

ok single line: '81260440461409'

Test #25:

score: 0
Accepted
time: 321ms
memory: 48188kb

input:

200000
67335 151665 90056816 679694202
146132 193464 78979944 31693610
12681 195973 465813284 579615164
121902 196667 589074557 966872296
161123 6959 801681236 38291288
183137 2828 885145066 943464735
120574 8814 71857893 233909004
125797 191097 749557098 250997809
169492 36886 49204718 996198360
12...

output:

99809636135608

result:

ok single line: '99809636135608'

Test #26:

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

input:

200000
93451 53831 682115484 829322216
86322 162604 254622021 431488750
147239 61110 113915150 613534953
82511 156348 664035377 946257404
88519 17517 226289497 122021251
112417 43731 544607243 486486588
35770 121679 465952267 546169853
90586 30876 245521241 309759680
113666 65754 237364361 270831775...

output:

84393916618910

result:

ok single line: '84393916618910'

Test #27:

score: 0
Accepted
time: 246ms
memory: 47776kb

input:

200000
56712 10679 477548548 250987465
48768 10679 648414920 382252569
10679 138629 849839069 418932116
10679 196853 372927887 111589355
66660 10679 746411098 882637935
186062 10679 311457882 818901438
10679 60211 350285495 867834084
143533 10679 509730429 587741385
10679 87624 514054621 907539858
1...

output:

99896973077522

result:

ok single line: '99896973077522'

Test #28:

score: 0
Accepted
time: 333ms
memory: 64836kb

input:

200000
137614 48684 905625272 307783875
31464 61159 171680699 710988975
53283 142419 838631110 435432764
123798 38255 535935021 734147826
29584 149426 371764453 875958871
175282 48325 804482249 620893459
55526 102124 797947818 494644787
62800 128616 320838726 279002065
33102 171918 195788467 4014179...

output:

38157344174731

result:

ok single line: '38157344174731'

Test #29:

score: 0
Accepted
time: 230ms
memory: 46388kb

input:

200000
199712 1338 415002784 805964493
102372 1338 193298420 76290567
28728 1338 804225462 746940935
1338 98005 301699377 822393419
1338 162021 577703287 907659652
1338 57339 183927508 654074158
1338 168042 859700698 427766288
1338 87100 984454975 400556960
193867 1338 787582553 819174352
1338 18369...

output:

99976824303453

result:

ok single line: '99976824303453'

Subtask #4:

score: 0
Skipped

Dependency #1:

0%

Subtask #5:

score: 0
Wrong Answer

Test #45:

score: 17
Accepted
time: 0ms
memory: 20240kb

input:

2
1 2 543195986 144983073
1
1

output:

144983073

result:

ok single line: '144983073'

Test #46:

score: -17
Wrong Answer
time: 338ms
memory: 48792kb

input:

200000
73974 46059 151001152 42729969
112523 175399 580450366 914798605
65645 46109 848220487 698683602
63048 106502 596698349 144038980
98888 11174 948423025 972032422
115490 95315 788936645 231068151
5185 187319 690370465 616111588
10331 161483 606127487 195799307
133831 170948 694137989 490575964...

output:

100117028182425

result:

wrong answer 1st lines differ - expected: '5449143475272', found: '100117028182425'

Subtask #6:

score: 0
Skipped

Dependency #1:

0%