QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#447992#68. Designated Citiesegypt_ioi2024_057 163ms97628kbC++172.9kb2024-06-19 06:56:542024-06-19 06:56:54

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

2
1 2 781089648 283888890
2
1
2

output:

283888890
0

result:

ok 2 lines

Test #2:

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

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
966156735
60218933
0
0
0
0
0
0
0
0
0
0
0
0

result:

ok 16 lines

Test #3:

score: -6
Wrong Answer
time: 3ms
memory: 38720kb

input:

16
3 4 204022014 914663555
9 10 11007340 458844696
2 7 605164817 895349276
14 11 434326485 550918606
14 7 712866927 489761842
6 1 356406033 534499656
16 8 942553720 855217399
5 10 865707145 586883622
6 13 108330979 234031340
15 8 769531307 948036095
3 16 358448538 363203546
5 2 419315988 76297418
12...

output:

7413430560
108330979
0
0
0
0
0
0
0
0
0
0
0
0
0
0

result:

wrong answer 2nd lines differ - expected: '0', found: '108330979'

Subtask #2:

score: 7
Accepted

Test #12:

score: 7
Accepted
time: 0ms
memory: 38576kb

input:

2
1 2 683402985 526289818
1
1

output:

526289818

result:

ok single line: '526289818'

Test #13:

score: 0
Accepted
time: 126ms
memory: 63212kb

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: 160ms
memory: 93308kb

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: 131ms
memory: 63016kb

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: 121ms
memory: 61440kb

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: 137ms
memory: 66200kb

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: 126ms
memory: 63756kb

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: 163ms
memory: 92860kb

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: 101ms
memory: 64400kb

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: 0
Wrong Answer

Test #21:

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

input:

2
2 1 92722556 873785501
1
2

output:

0

result:

ok single line: '0'

Test #22:

score: 0
Accepted
time: 132ms
memory: 61424kb

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: 147ms
memory: 97628kb

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: 119ms
memory: 63212kb

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: 119ms
memory: 62692kb

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: 147ms
memory: 67072kb

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: -9
Wrong Answer
time: 88ms
memory: 65544kb

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:

99897260246685

result:

wrong answer 1st lines differ - expected: '99896973077522', found: '99897260246685'

Subtask #4:

score: 0
Skipped

Dependency #1:

0%

Subtask #5:

score: 0
Wrong Answer

Test #45:

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

input:

2
1 2 543195986 144983073
1
1

output:

144983073

result:

ok single line: '144983073'

Test #46:

score: 0
Accepted
time: 128ms
memory: 62756kb

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:

5449143475272

result:

ok single line: '5449143475272'

Test #47:

score: 0
Accepted
time: 145ms
memory: 97604kb

input:

200000
55956 185434 219535533 77244021
65295 10318 437281446 132103674
53900 4204 965744871 874409893
67035 24879 596850278 341918390
70240 26074 837750040 304745373
116294 182996 806065306 688634320
21494 104498 465710706 695396976
71934 165575 761917591 524436924
95534 186806 199405432 534812435
1...

output:

99875550841137

result:

ok single line: '99875550841137'

Test #48:

score: 0
Accepted
time: 116ms
memory: 61420kb

input:

200000
7483 177514 697 697
3231 129745 999845999 999845999
109949 87100 999891988 999891988
29413 172327 299 299
170523 87926 999952504 999952504
124853 61455 999934698 999934698
42350 132622 91 91
69970 50413 815 815
55204 183824 999939325 999939325
59484 71281 206 206
37791 170069 451 451
50058 17...

output:

1780721830674

result:

ok single line: '1780721830674'

Test #49:

score: -17
Wrong Answer
time: 130ms
memory: 62212kb

input:

200000
105838 73186 128349778 353598318
63031 136227 114628484 285882597
191398 198457 37866162 634787861
171869 171043 573009985 810912546
37331 137239 646433925 996743109
49856 185509 134224603 278011602
160259 37541 150993603 746491914
59331 161858 652495320 165803995
117507 178303 933794623 4222...

output:

98851939690280

result:

wrong answer 1st lines differ - expected: '98851135600011', found: '98851939690280'

Subtask #6:

score: 0
Skipped

Dependency #1:

0%