QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#734451 | #8593. Coin | ZhaoZiLong | 50 | 176ms | 45008kb | C++20 | 1.2kb | 2024-11-11 10:47:51 | 2024-11-11 10:47:52 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 3
Acceptable Answer
Test #1:
score: 6
Accepted
time: 2ms
memory: 9756kb
input:
4 4 2 4 3 1 4 1 2 3
output:
3 4 -1 -1
result:
ok ac
Test #2:
score: 3
Acceptable Answer
time: 0ms
memory: 9756kb
input:
6 8 1 5 5 4 6 2 2 5 4 3 6 1 6 5 2 1
output:
8 8 5 5 7 7
result:
points 0.50 -1 correct
Test #3:
score: 6
Accepted
time: 2ms
memory: 9884kb
input:
2 1 1 2
output:
1 1
result:
ok ac
Test #4:
score: 3
Acceptable Answer
time: 0ms
memory: 9804kb
input:
6 12 1 5 5 4 6 2 2 5 4 3 6 5 1 5 1 5 2 4 6 3 1 3 4 3
output:
-1 -1 12 12 8 -1
result:
points 0.50 -1 correct
Test #5:
score: 3
Acceptable Answer
time: 2ms
memory: 9828kb
input:
7 20 1 6 6 3 1 4 1 5 1 7 1 2 1 5 2 3 4 5 7 2 2 4 5 3 6 3 1 3 4 3 7 5 2 6 4 6 7 2 7 5
output:
14 19 15 18 -1 -1 20
result:
points 0.50 -1 correct
Test #6:
score: 3
Acceptable Answer
time: 2ms
memory: 9816kb
input:
7 20 5 6 1 3 3 6 4 1 7 4 2 5 4 3 2 6 7 5 4 6 2 6 2 1 4 5 1 3 1 5 7 1 7 6 4 1 7 6 3 6
output:
18 -1 -1 -1 -1 20 -1
result:
points 0.50 -1 correct
Test #7:
score: 3
Acceptable Answer
time: 0ms
memory: 9800kb
input:
7 20 7 6 4 5 6 4 3 6 4 1 6 2 3 5 5 2 7 6 1 2 3 6 6 4 7 1 6 1 7 1 4 5 3 6 3 5 4 5 3 1
output:
-1 10 -1 19 -1 17 -1
result:
points 0.50 -1 correct
Subtask #2:
score: 8
Acceptable Answer
Dependency #1:
50%
Acceptable Answer
Test #8:
score: 8
Acceptable Answer
time: 2ms
memory: 9844kb
input:
20 100 5 20 4 5 18 16 1 13 14 9 11 19 6 4 7 20 16 11 8 13 4 5 16 9 12 14 7 12 11 3 9 11 9 11 13 6 3 10 12 9 13 4 20 12 13 6 18 11 5 7 5 7 15 18 12 15 17 13 15 18 3 2 11 2 11 2 15 19 4 19 14 19 14 9 17 3 1 18 8 10 16 19 1 6 7 2 5 12 1 18 8 20 5 18 8 5 4 16 1 15 5 19 18 19 17 10 1 10 17 3 10 2 3 10 17...
output:
-1 -1 -1 95 91 90 98 -1 97 -1 99 98 83 -1 93 -1 -1 -1 -1 96
result:
points 0.50 -1 correct
Test #9:
score: 8
Acceptable Answer
time: 2ms
memory: 7788kb
input:
100 400 87 45 42 17 9 81 65 10 8 82 76 48 39 73 21 58 76 30 76 92 74 76 99 90 38 50 86 74 75 52 8 2 80 55 20 95 66 60 78 82 10 18 22 59 23 17 63 76 56 51 38 10 50 65 41 28 64 77 59 53 100 66 38 84 23 47 17 9 45 75 41 28 33 41 8 78 2 95 3 11 40 15 60 63 23 17 82 2 61 44 44 16 77 34 100 66 96 99 68 12...
output:
-1 -1 399 -1 329 -1 -1 -1 364 -1 302 -1 -1 359 371 333 328 -1 -1 -1 -1 272 -1 314 -1 -1 334 385 -1 -1 -1 -1 365 348 -1 -1 351 291 306 396 -1 -1 301 400 356 368 -1 -1 -1 -1 376 -1 398 379 -1 -1 -1 -1 377 -1 394 -1 -1 202 -1 383 -1 -1 -1 -1 -1 -1 350 -1 312 157 346 -1 367 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
result:
points 0.50 -1 correct
Subtask #3:
score: 5
Acceptable Answer
Dependency #1:
50%
Acceptable Answer
Dependency #2:
50%
Acceptable Answer
Test #10:
score: 5
Acceptable Answer
time: 3ms
memory: 10060kb
input:
1000 4000 619 298 211 477 584 418 812 280 978 268 280 345 715 364 73 664 915 819 535 28 110 959 384 663 773 315 792 250 374 80 134 202 779 416 613 334 318 756 21 812 424 997 664 277 151 963 299 438 955 988 532 653 521 43 121 20 902 849 237 305 272 893 325 792 469 549 891 531 612 810 294 256 188 990 ...
output:
-1 3639 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1897 2378 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 3556 3989 3926 -1 -1 -1 -1 3925 -1 -1 -1 -1 -1 -1 -1 3594 -1 -1 3547 3834 -1 -1 -1 -1 -1 -1 -1 -1 -1 3714 -1 -1 -1 -1 -1 -1 3938 -1 -1 -1 3626 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 3297 -1 -1 -1 -1 -1...
result:
points 0.50 -1 correct
Test #11:
score: 5
Acceptable Answer
time: 2ms
memory: 10004kb
input:
1000 4000 229 403 665 867 715 618 306 900 423 567 515 288 39 754 782 321 516 969 432 89 304 726 837 39 648 991 870 369 84 681 864 41 682 940 565 914 724 763 694 112 969 815 864 41 975 868 662 803 707 465 905 791 116 115 823 578 949 588 589 522 775 447 795 130 366 456 993 910 187 396 102 774 143 90 9...
output:
3966 -1 -1 3296 2822 3444 -1 -1 -1 -1 3170 -1 3506 -1 -1 3864 -1 -1 -1 3531 -1 -1 3886 -1 3705 3592 3377 3857 -1 3829 -1 -1 3613 -1 3791 -1 -1 -1 -1 -1 -1 -1 -1 3863 -1 -1 3726 -1 1969 -1 3834 -1 3285 -1 -1 -1 -1 -1 -1 -1 3554 -1 3478 3540 3527 -1 3562 3620 3976 -1 -1 -1 -1 -1 3818 -1 3642 -1 3775 2...
result:
points 0.50 -1 correct
Test #12:
score: 5
Acceptable Answer
time: 2ms
memory: 7904kb
input:
1000 4000 693 317 927 745 607 353 336 456 182 240 100 824 252 317 88 828 436 714 833 621 533 704 63 735 522 518 900 283 135 829 627 459 601 176 876 806 573 140 380 898 870 795 990 876 943 148 500 462 808 486 920 463 794 7 531 181 60 105 497 875 859 469 997 575 706 838 296 194 453 793 310 673 771 307...
output:
3885 3239 -1 -1 -1 -1 3673 3693 -1 3481 -1 3758 3502 -1 3732 -1 3997 4000 -1 -1 -1 -1 -1 3959 3607 2954 -1 -1 -1 3550 -1 3663 -1 -1 -1 -1 3592 -1 3564 -1 3830 -1 3391 -1 -1 3735 3480 3773 3891 -1 3900 2935 3408 -1 3726 2476 -1 3817 3796 3679 -1 -1 3848 -1 -1 3620 -1 3675 3990 3420 3752 3222 -1 3724 ...
result:
points 0.50 -1 correct
Subtask #4:
score: 34
Acceptable Answer
Dependency #1:
50%
Acceptable Answer
Dependency #2:
50%
Acceptable Answer
Dependency #3:
50%
Acceptable Answer
Test #13:
score: 34
Acceptable Answer
time: 7ms
memory: 11288kb
input:
10000 24156 6770 9800 71 3709 5373 2058 9145 5993 9973 456 1562 628 839 3483 9354 9169 7105 7062 4434 4044 2147 534 7337 1981 719 3853 8205 8198 1286 7343 246 4189 1324 8878 547 3468 2219 8650 7265 5823 6382 5720 6219 1258 8893 466 5615 9147 7763 7160 3652 6512 7594 7169 235 1287 6487 2049 6894 853 ...
output:
-1 -1 -1 -1 -1 -1 -1 20073 -1 -1 17649 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 23710 24052 -1 -1 -1 -1 -1 -1 -1 -1 23010 -1 -1 -1 -1 14416 -1 -1 -1 -1 -1 -1 -1 14009 -1 -1 -1 -1 -1 20709 -1 -1 20704 17397 -1 18578 18237 -1 -1 -1 -1 18804 -1 -1 -1 -1 21681 -1 -1 -1 -1 -1 -1 20684 -1 -1 -1 -1 21136 -1 -1 ...
result:
points 0.50 -1 correct
Test #14:
score: 34
Acceptable Answer
time: 145ms
memory: 39912kb
input:
200000 468137 35741 15045 1120 91913 22147 173548 159967 11985 16594 176358 9659 38704 191979 69853 143002 8669 21000 41718 133024 156174 117934 139285 195752 71163 147173 197600 11162 174429 73822 144204 54279 46442 117136 26281 57220 169661 66060 17651 79359 190948 157353 39342 174367 171524 20596...
output:
416619 -1 368868 -1 -1 -1 -1 -1 -1 -1 -1 -1 398876 -1 66111 340419 -1 462591 414689 -1 175057 394264 -1 381312 -1 421503 380497 -1 423185 -1 -1 -1 -1 357130 304417 404111 287884 430879 388025 465522 449287 -1 296034 332442 367869 121802 -1 -1 -1 454336 -1 368068 -1 -1 271655 392664 393453 294666 434...
result:
points 0.50 -1 correct
Test #15:
score: 34
Acceptable Answer
time: 130ms
memory: 33060kb
input:
200000 468137 18307 19100 40922 157065 110486 186164 162350 128685 173337 26268 44149 120981 72855 28308 37223 18182 85797 187995 145162 148564 83475 153909 137232 52626 45818 170829 178940 14019 149179 184740 44886 189017 20868 52693 52333 30125 154345 16016 70858 127462 55617 148970 149663 78780 2...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
points 0.50 -1 correct
Test #16:
score: 34
Acceptable Answer
time: 151ms
memory: 39352kb
input:
200000 800000 140879 117637 98522 117637 10232 117637 36343 117637 117637 93454 157979 93454 19642 93454 187151 93454 65023 93454 187276 93454 103374 93454 57139 93454 149815 93454 114598 93454 143167 93454 14885 93454 176652 93454 87850 93454 174719 93454 155221 93454 163847 93454 199716 93454 1773...
output:
-1 -1 -1 622527 -1 -1 -1 -1 -1 -1 -1 -1 -1 767761 772495 559637 -1 -1 -1 -1 -1 -1 -1 -1 -1 544113 -1 -1 721891 -1 -1 -1 -1 404797 -1 703249 -1 -1 -1 -1 -1 -1 -1 -1 -1 681563 -1 779275 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 511777 -1 -1 795763 -1 -1 -1 511221 -1 -1 -1 -1 -1 697381 440617 611089...
result:
points 0.50 -1 correct
Test #17:
score: 34
Acceptable Answer
time: 154ms
memory: 38088kb
input:
200000 800000 62325 161697 151683 161697 198691 161697 21516 161697 91380 161697 168404 161697 78609 161697 75808 161697 80474 161697 80507 161697 34215 161697 63846 161697 27190 161697 31053 161697 159207 161697 13358 161697 10721 161697 152737 161697 160991 161697 146894 161697 182948 161697 17968...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 579314 -1 -1 -1 734902 -1 -1 -1 -1 -1 -1 -1 -1 -1 627112 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 729078 -1 -1 -1 -1 438890 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 410412 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
points 0.50 -1 correct
Test #18:
score: 34
Acceptable Answer
time: 176ms
memory: 37072kb
input:
200000 800000 78739 79811 79811 28504 28504 61141 61141 126609 126609 116063 123434 116063 49075 116063 116063 194447 131438 194447 99324 194447 194447 98911 149827 98911 126877 98911 98911 71368 186074 71368 21155 71368 72971 71368 71368 75980 75980 188804 75516 188804 188804 7115 182681 7115 7115 ...
output:
632548 792968 608500 562088 639046 751378 -1 763022 456172 746088 486660 514868 -1 486358 767352 -1 446508 -1 -1 -1 659222 514026 670864 -1 480562 652080 -1 770600 717276 -1 723318 528506 699188 765560 -1 593280 627964 692804 715234 478976 -1 -1 421598 565904 -1 499922 544474 446512 420198 -1 683696...
result:
points 0.50 -1 correct
Test #19:
score: 34
Acceptable Answer
time: 175ms
memory: 40080kb
input:
200000 800000 108512 73949 135805 73949 95312 73949 140209 73949 150505 73949 73949 24406 24406 141955 154004 141955 127957 141955 116335 141955 141955 195935 43624 195935 66541 195935 143619 195935 182398 195935 180870 195935 170123 195935 14208 195935 197606 195935 130794 195935 75756 195935 4146 ...
output:
-1 740861 783907 496373 -1 492929 797143 645601 717233 759563 588647 -1 495297 -1 -1 776369 -1 702791 -1 662807 506853 477627 -1 524827 -1 494361 -1 467855 764577 759475 -1 434145 551463 720199 439087 502217 422713 723867 418779 571021 463689 656275 530807 -1 478737 791427 448665 617093 537101 44678...
result:
points 0.50 -1 correct
Test #20:
score: 34
Acceptable Answer
time: 169ms
memory: 35724kb
input:
200000 800000 19432 29295 101253 29295 6353 29295 197863 29295 52785 29295 19903 29295 93434 29295 72025 29295 99142 29295 113817 29295 80402 29295 9084 29295 131372 29295 132320 29295 50546 29295 162167 29295 134782 29295 148458 29295 128761 29295 72057 29295 114049 29295 74703 29295 21239 29295 41...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
points 0.50 -1 correct
Test #21:
score: 34
Acceptable Answer
time: 175ms
memory: 38488kb
input:
200000 800000 1662 180818 190048 180818 146889 180818 65300 180818 150148 180818 3816 180818 49514 180818 29405 180818 177990 180818 45019 180818 46779 180818 166336 180818 78994 180818 166867 180818 192221 180818 108092 180818 2633 180818 180279 180818 133390 180818 8208 180818 72486 180818 103659 ...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
points 0.50 -1 correct
Test #22:
score: 34
Acceptable Answer
time: 175ms
memory: 35680kb
input:
200000 800000 118185 42426 189209 42426 73990 42426 166924 42426 114149 42426 124522 42426 60282 42426 2364 42426 115572 42426 152731 42426 48067 42426 170096 42426 99399 42426 66607 42426 147236 42426 80184 42426 101912 42426 18626 42426 29532 42426 18891 42426 6698 42426 198037 42426 57756 42426 6...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
points 0.50 -1 correct
Test #23:
score: 34
Acceptable Answer
time: 171ms
memory: 37240kb
input:
200000 800000 6100 177085 181494 177085 122479 177085 45578 177085 149208 177085 60428 177085 185219 177085 67568 177085 35971 177085 153745 177085 158711 177085 136174 177085 190922 177085 63723 177085 130917 177085 56621 177085 80344 177085 47296 177085 57469 177085 83167 177085 38590 177085 17358...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
points 0.50 -1 correct
Test #24:
score: 34
Acceptable Answer
time: 143ms
memory: 45008kb
input:
200000 800000 171540 35602 171540 119207 171540 183762 171540 180714 171540 55823 171540 145888 171540 281 171540 125253 171540 79325 171540 83741 171540 47617 171540 101542 171540 80373 171540 154671 171540 120544 171540 115683 171540 111655 171540 91717 171540 81772 171540 26363 171540 99287 17154...
output:
645478 632399 690910 684625 711551 682963 765291 732651 666815 656578 631462 694560 785494 722446 687037 769773 772712 633730 736067 642249 764056 636185 722238 724546 635276 649104 756875 678947 765602 606447 664683 798935 600953 644047 681947 659817 774139 770795 703113 651854 758921 691485 626887...
result:
points 0.50 -1 correct
Test #25:
score: 34
Acceptable Answer
time: 0ms
memory: 10076kb
input:
2000 2000 1740 610 1384 137 1903 1373 1981 1128 183 844 1733 1480 1156 1988 50 694 590 1330 4 1676 329 129 694 1453 950 1024 1513 142 698 1739 1573 1252 1547 1289 1558 1691 1370 1579 1109 441 1494 1552 62 149 1926 1931 1722 1444 417 1166 489 904 294 1105 451 1526 10 1416 351 1350 153 485 198 1054 11...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
points 0.50 -1 correct
Test #26:
score: 34
Acceptable Answer
time: 73ms
memory: 36996kb
input:
200000 200000 903 154533 26630 32712 21337 44319 129212 185001 195348 166878 11610 39556 136726 88342 136464 59656 116732 35636 51034 165415 60437 26141 139150 73236 104247 140796 29497 159419 37589 104943 187292 207 126305 4155 70475 111545 20152 129516 180621 106932 187934 38639 89380 92756 161084...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
points 0.50 -1 correct