QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#92927#6174. 最佳收益问题Naitoah100 ✓618ms100400kbC++143.2kb2023-03-31 08:42:382023-03-31 08:42:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 20ms
memory: 75380kb

input:

4019 2103
2871 3911 665 2673 453 2028 1801 1724 5613 4993 5566 4113 2772 3264 145 2421 4008 2588 1427 4954 4279 5577 5230 5589 5248 3848 4013 4383 5671 2591 3788 5674 3041 2189 1680 385 3123 1121 26 522 1237 2329 4855 2003 280 2873 277 485 5400 1004 5580 2379 1015 4272 244 5503 4023 4995 66 899 2499...

output:

2028227943274

result:

ok 1 number(s): "2028227943274"

Test #2:

score: 10
Accepted
time: 12ms
memory: 75348kb

input:

8900 4905
10964 13270 984 298 8769 9115 11019 12703 12791 2346 11134 12963 7658 5018 1473 11691 4190 2742 5457 9860 9564 6851 1921 1417 11275 8872 4149 3953 1883 13067 10136 8182 231 1249 2214 9453 1774 6360 7757 12758 11375 12411 12069 6971 5194 4992 2574 8557 2290 13255 2873 10753 13428 10495 2390...

output:

4453876384692

result:

ok 1 number(s): "4453876384692"

Test #3:

score: 10
Accepted
time: 13ms
memory: 75332kb

input:

311 2628
1207 1349 2410 2240 2296 975 88 871 2805 1564 1257 2504 890 308 779 67 1677 1416 1343 2903 767 937 1105 1431 2545 2227 2069 648 1758 2358 468 2801 65 2778 1275 1865 2665 2301 887 886 1569 492 2468 898 1459 1663 1291 1648 286 1963 128 1871 2767 1245 281 310 2437 1908 1331 2422 1346 353 1993 ...

output:

1304292030472

result:

ok 1 number(s): "1304292030472"

Test #4:

score: 10
Accepted
time: 6ms
memory: 73288kb

input:

99 8344
3342 1382 2517 309 5595 2740 210 1057 915 6055 6803 5200 3439 6252 2224 2616 8260 2379 2496 7136 7127 5980 6114 2366 155 5991 2515 2298 3780 1796 451 7355 6768 5937 5962 2467 3808 6867 2929 6764 7685 1523 2102 1014 5891 1966 2326 2271 6498 283 1933 4279 4 7770 7540 8384 1517 267 5827 1726 70...

output:

4137190833077

result:

ok 1 number(s): "4137190833077"

Test #5:

score: 10
Accepted
time: 563ms
memory: 99624kb

input:

433350 442593
159332 643662 301804 12909 168603 665710 233377 208277 412787 731921 300091 274871 727391 34447 16089 364278 531094 499697 674604 309846 133488 18183 579067 767770 375079 648987 267984 188445 333378 669397 259821 652420 235310 465367 341853 35713 338852 644404 610807 653565 831107 2375...

output:

221382094320065

result:

ok 1 number(s): "221382094320065"

Test #6:

score: 10
Accepted
time: 578ms
memory: 96832kb

input:

401492 485095
691400 441182 359264 193099 142771 202309 89926 109782 848276 429125 523837 565567 691209 846372 17444 732439 577036 773093 21693 300411 151021 736373 253528 627087 453965 351522 575936 747524 405885 149589 843900 515172 773849 523668 750753 164958 644784 85271 348919 351976 426830 435...

output:

242207218345580

result:

ok 1 number(s): "242207218345580"

Test #7:

score: 10
Accepted
time: 528ms
memory: 100044kb

input:

431071 410762
66095 751217 328809 806558 148779 242598 495878 666568 313556 133455 85629 51000 708486 806732 465841 158814 680234 305539 840673 672327 678552 310571 601783 416911 120781 38531 3286 392919 199584 648999 252731 679372 525520 279644 662060 138343 814980 471683 290763 766712 601943 77013...

output:

215724502461073

result:

ok 1 number(s): "215724502461073"

Test #8:

score: 10
Accepted
time: 549ms
memory: 100276kb

input:

418290 458097
232966 418436 320799 15173 107693 694952 237601 384648 856981 97847 848046 317376 557389 128982 586979 4929 264710 169560 297398 749105 303318 445392 13819 11856 643023 802052 279403 759562 546620 641057 870993 855021 356867 409907 11994 814929 260190 526506 95242 276882 236859 220267 ...

output:

229255638862787

result:

ok 1 number(s): "229255638862787"

Test #9:

score: 10
Accepted
time: 519ms
memory: 100400kb

input:

409502 451610
473218 5099 692278 242151 420646 837261 35276 642219 801204 491443 840426 500262 50752 72526 604637 160649 159992 846017 824061 275944 46478 353285 607157 534321 277502 413518 448768 201165 292736 29946 549542 582496 519043 214406 100930 447647 274067 407016 733191 833468 333803 607310...

output:

225580625189379

result:

ok 1 number(s): "225580625189379"

Test #10:

score: 10
Accepted
time: 618ms
memory: 99192kb

input:

480209 482709
528837 142619 795439 117946 121736 677 583682 628052 831670 52324 262061 122761 745332 840106 858244 906224 137701 422340 82728 492961 135854 99874 836795 104836 377824 665715 877642 459342 884770 299421 241437 879722 306012 728796 144938 69549 325562 933156 268589 324308 104504 409067...

output:

241278214633005

result:

ok 1 number(s): "241278214633005"