QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#316593#1494. Greedy Gift Takersqiuzx100 ✓8ms4744kbC++17869b2024-01-27 22:21:462024-01-27 22:21:46

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 7.69231
Accepted
time: 0ms
memory: 3836kb

input:

3
1 2 0

output:

1

result:

ok single line: '1'

Test #2:

score: 7.69231
Accepted
time: 0ms
memory: 3792kb

input:

100
42 8 40 74 5 34 2 12 38 37 73 27 0 82 45 35 96 27 40 21 28 64 61 42 53 95 53 57 74 99 70 69 7 10 43 64 44 45 77 35 34 2 62 34 36 8 22 33 87 62 54 67 78 67 9 32 62 63 41 89 62 11 58 21 22 1 37 18 46 66 53 80 68 68 67 5 28 89 90 15 3 96 82 34 63 44 18 78 7 59 67 21 22 77 94 96 78 83 15 76

output:

70

result:

ok single line: '70'

Test #3:

score: 7.69231
Accepted
time: 0ms
memory: 3936kb

input:

100
75 5 6 51 1 81 38 53 5 57 28 46 75 37 47 90 70 84 54 4 21 90 68 69 85 30 35 75 91 83 47 4 88 80 81 89 67 26 48 72 15 8 25 91 72 4 19 74 21 73 79 42 69 53 44 86 16 79 0 39 68 47 43 62 59 30 57 33 82 38 37 4 72 88 27 50 25 72 31 46 51 42 88 52 27 38 44 43 49 44 14 23 24 57 85 15 20 75 74 8

output:

17

result:

ok single line: '17'

Test #4:

score: 7.69231
Accepted
time: 0ms
memory: 3936kb

input:

999
411 87 130 234 216 472 933 850 836 625 499 395 193 801 906 854 620 951 636 327 541 810 891 948 20 767 69 643 78 706 51 485 789 154 715 6 600 627 829 414 230 330 805 419 132 689 252 725 641 884 53 161 672 940 110 665 685 152 309 736 854 333 222 621 461 911 600 62 516 431 472 742 757 255 140 862 9...

output:

235

result:

ok single line: '235'

Test #5:

score: 7.69231
Accepted
time: 4ms
memory: 4568kb

input:

99994
87976 92592 11863 21485 77772 48094 99795 95500 18545 45067 20986 73832 39438 23356 29103 82934 14807 11698 70125 15060 59017 82502 21426 50589 15668 72275 42884 51397 85984 68044 90718 73966 60642 2587 30273 38420 50554 64890 68743 68971 9963 89601 77625 84090 12963 41550 1980 62459 53120 719...

output:

57962

result:

ok single line: '57962'

Test #6:

score: 7.69231
Accepted
time: 4ms
memory: 4660kb

input:

99989
19934 54128 79155 91270 19734 76544 46652 69225 57338 87385 36896 42671 68708 83018 60275 74520 58718 25847 38095 12812 19165 39221 11021 93135 11989 35239 39875 12351 81614 68941 93197 90564 29149 78432 87913 42815 56139 40644 13203 19556 29193 44031 51243 91833 33128 12682 67516 85778 32461 ...

output:

6074

result:

ok single line: '6074'

Test #7:

score: 7.69231
Accepted
time: 8ms
memory: 4568kb

input:

99988
59023 55219 62593 67516 38128 57956 57409 89301 77817 87119 88763 47156 69177 63268 15718 10756 20694 50939 85250 28539 34606 63910 14306 85207 51652 34909 75460 18831 85422 49896 13320 23403 62842 33639 80309 58696 80985 16676 58619 37761 14418 26340 74307 72985 47334 79415 41467 57418 88080 ...

output:

10613

result:

ok single line: '10613'

Test #8:

score: 7.69231
Accepted
time: 7ms
memory: 4696kb

input:

99987
50507 49511 69063 26810 45826 32266 63307 39664 33671 59570 74795 68405 78129 70273 58870 29894 43221 68792 32003 51213 61506 26873 23313 39961 39235 45339 60299 49368 29591 40255 53058 59334 69002 50615 73097 43322 62117 64898 69940 24283 52962 65512 71924 59586 56562 59289 68716 79019 48858 ...

output:

20765

result:

ok single line: '20765'

Test #9:

score: 7.69231
Accepted
time: 4ms
memory: 4648kb

input:

99986
84665 89877 70673 80373 86568 65708 79884 77626 65664 80325 73816 68553 88798 73282 74520 72428 83962 80126 87353 67915 83482 67743 71736 91382 71809 76633 79286 70072 88246 81621 72408 68575 67162 78970 72850 77632 68580 88623 91147 70132 64612 88865 90826 77312 69797 72996 85628 89647 77024 ...

output:

64112

result:

ok single line: '64112'

Test #10:

score: 7.69231
Accepted
time: 8ms
memory: 4700kb

input:

99990
51437 8617 44709 51454 17007 4775 72630 57114 86873 75377 36527 46117 20112 83290 25697 60526 10826 67908 58750 51271 92927 22486 46021 27476 66699 80756 46721 41168 51648 24459 85524 43323 66237 70471 91243 79710 71712 67417 77062 62129 46338 17133 48484 6688 3968 14420 63680 47954 78794 6266...

output:

3573

result:

ok single line: '3573'

Test #11:

score: 7.69231
Accepted
time: 8ms
memory: 4744kb

input:

99989
63847 6804 44302 89575 87572 24495 17902 88663 26826 89770 85809 66014 90751 91811 19083 81115 90337 78014 74490 88513 45036 47431 78233 81160 46719 81673 69185 11356 70998 52768 73617 40560 39404 23634 21386 32691 27960 19119 27070 49082 88720 18594 20811 85187 16120 19725 57552 86289 92035 2...

output:

5710

result:

ok single line: '5710'

Test #12:

score: 7.69231
Accepted
time: 7ms
memory: 4572kb

input:

99988
53130 60125 24303 72770 76600 56829 28141 37921 26423 56697 66437 25070 58121 47182 48267 39733 54476 66191 29829 36307 56828 72632 83852 58902 88129 80474 52799 56267 35420 51683 51087 36274 59533 23115 20216 47305 68784 37197 32950 84047 41618 88228 56841 88579 83134 16280 76036 85334 71312 ...

output:

11162

result:

ok single line: '11162'

Test #13:

score: 7.69231
Accepted
time: 7ms
memory: 4644kb

input:

99987
65426 35881 61805 33064 62135 63832 58200 45933 70611 69395 36119 38786 66625 41820 62230 47504 69282 68332 32711 70407 51324 30297 46861 46496 50120 30291 41309 50521 61187 48584 63123 55050 56041 29137 35462 65524 64545 41010 39894 63593 38843 66500 30816 33905 36758 40395 52985 53388 56075 ...

output:

28425

result:

ok single line: '28425'