QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#83146#1299. Jinxed Bettingxiaowuc1AC ✓31ms5944kbC++172.7kb2023-03-01 06:07:282023-03-01 06:07:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 3508kb

input:

3
23 23 23

output:

0

result:

ok single line: '0'

Test #2:

score: 0
Accepted
time: 2ms
memory: 3500kb

input:

3
9999999999999997 99999977 42

output:

19999999899999975

result:

ok single line: '19999999899999975'

Test #3:

score: 0
Accepted
time: 2ms
memory: 3504kb

input:

5
10 3 3 3 3

output:

10

result:

ok single line: '10'

Test #4:

score: 0
Accepted
time: 2ms
memory: 3400kb

input:

8
100 3 3 3 3 1 1 1

output:

145

result:

ok single line: '145'

Test #5:

score: 0
Accepted
time: 2ms
memory: 3440kb

input:

9
100 3 3 3 3 1 1 1 1

output:

130

result:

ok single line: '130'

Test #6:

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

input:

10
1024 512 256 128 64 32 16 8 4 2

output:

1086

result:

ok single line: '1086'

Test #7:

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

input:

6
16807 1 7 49 343 2401

output:

23835

result:

ok single line: '23835'

Test #8:

score: 0
Accepted
time: 2ms
memory: 3468kb

input:

3
100000 100000 50000

output:

50000

result:

ok single line: '50000'

Test #9:

score: 0
Accepted
time: 2ms
memory: 3292kb

input:

3
10000000000000000 10000000000000000 0

output:

10000000000000000

result:

ok single line: '10000000000000000'

Test #10:

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

input:

1000
9999999976872319 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999 99999999...

output:

11111110974302577

result:

ok single line: '11111110974302577'

Test #11:

score: 0
Accepted
time: 22ms
memory: 5944kb

input:

100000
10000000000000000 9831799642640502 490884967353220 4250990872142901 3884206227199 7177695457757473 2140987542316324 3643489919551137 10284214847841 5112792219646543 7761496377327817 7805996446646511 7258295581314227 6673094668081158 8258297164914564 1841687084724006 7939896656732076 531599253...

output:

100199633619

result:

ok single line: '100199633619'

Test #12:

score: 0
Accepted
time: 24ms
memory: 5912kb

input:

100000
9999999876543211 11327 83804 28202 14909 16253 50491 44548 64195 79095 57792 88544 86259 71735 66350 9003 11779 6234 90659 13182 95227 86779 61681 22244 17899 55546 95945 83152 77135 98924 14193 79871 45001 90822 70213 46474 17844 18294 13164 342 20084 41100 81910 47760 54403 34227 54220 3448...

output:

10624999868729103

result:

ok single line: '10624999868729103'

Test #13:

score: 0
Accepted
time: 2ms
memory: 3396kb

input:

3
10000000000000000 42 0

output:

19999999999999958

result:

ok single line: '19999999999999958'

Test #14:

score: 0
Accepted
time: 2ms
memory: 3400kb

input:

3
42 42 42

output:

0

result:

ok single line: '0'

Test #15:

score: 0
Accepted
time: 2ms
memory: 3400kb

input:

3
42 42 0

output:

42

result:

ok single line: '42'

Test #16:

score: 0
Accepted
time: 2ms
memory: 3460kb

input:

5
42 0 0 0 0

output:

63

result:

ok single line: '63'

Test #17:

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

input:

4
42 0 0 0

output:

84

result:

ok single line: '84'

Test #18:

score: 0
Accepted
time: 2ms
memory: 3464kb

input:

6
42 0 0 0 0 0

output:

63

result:

ok single line: '63'

Test #19:

score: 0
Accepted
time: 2ms
memory: 3464kb

input:

10
900 850 865 875 880 899 100 400 500 600

output:

21

result:

ok single line: '21'

Test #20:

score: 0
Accepted
time: 2ms
memory: 3500kb

input:

10
900 450 465 475 480 499 100 400 500 600

output:

540

result:

ok single line: '540'

Test #21:

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

input:

10000
999796001870710 999792073067383 999790318195512 999789264166264 999631580655418 999342359967422 999261462695963 999235088174743 999234068995087 999208289887335 999187774668283 998948527894055 998877326112365 998841569617078 998754954155971 998529794182407 998441453128010 998292410085104 998119...

output:

9612478525

result:

ok single line: '9612478525'

Test #22:

score: 0
Accepted
time: 2ms
memory: 3300kb

input:

100
9251450596834164 256630678409704 2376790153975559 2174652873019401 1346355917542673 1888917850416876 2302250718269521 569497484072800 226196856053273 1602302942585484 2055808175225552 173696555501795 2090446958050355 759718332104249 475954089650049 204305595234972 1492654958253481 92591315807037...

output:

8455502168076257

result:

ok single line: '8455502168076257'

Test #23:

score: 0
Accepted
time: 2ms
memory: 3340kb

input:

3
10000000000000000 0 0

output:

20000000000000000

result:

ok single line: '20000000000000000'

Test #24:

score: 0
Accepted
time: 6ms
memory: 4048kb

input:

100000
10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000000000000000 10000...

output:

0

result:

ok single line: '0'

Test #25:

score: 0
Accepted
time: 2ms
memory: 4108kb

input:

100000
10000000000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

10625000000000000

result:

ok single line: '10625000000000000'

Test #26:

score: 0
Accepted
time: 14ms
memory: 5788kb

input:

100000
10000000000000000 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 ...

output:

10624999999901943

result:

ok single line: '10624999999901943'

Test #27:

score: 0
Accepted
time: 21ms
memory: 5840kb

input:

100000
10000000000000000 684315546187051 942114948819252 629983697462968 105363074265760 245985782250050 207710415163657 459372812534251 450553955067661 818277540081699 128558602082583 178568109656358 370812367151319 812230474984068 836083930256401 114769727374269 896338859940712 644406811267712 348...

output:

9644132667442358

result:

ok single line: '9644132667442358'

Test #28:

score: 0
Accepted
time: 5ms
memory: 4020kb

input:

100000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0

result:

ok single line: '0'

Test #29:

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

input:

100000
10000000000000000 81600078602438 81633210274113 29127350156396 99088501701524 21697449775469 18819505983098 26041938797887 47969780952502 67303980245551 46850451171948 8173601215716 92936217228680 90383143634346 94947963866264 83086346101879 60353688324834 29120090424467 27089981465027 926205...

output:

10526904847098146

result:

ok single line: '10526904847098146'

Test #30:

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

input:

100000
10000000000000000 0 5000000000 10000000000 15000000000 20000000000 25000000000 30000000000 35000000000 40000000000 45000000000 50000000000 55000000000 60000000000 65000000000 70000000000 75000000000 80000000000 85000000000 90000000000 95000000000 100000000000 105000000000 110000000000 1150000...

output:

10134715000000000

result:

ok single line: '10134715000000000'

Test #31:

score: 0
Accepted
time: 31ms
memory: 5792kb

input:

100000
10000000000000000 42576223839453 70722232854541 66372595640924 94433503218618 40442425096584 82726660118484 83968507616704 16503080067370 23537579371347 15594964853572 61213446790831 51813864988677 87786035069582 23892924459619 14990850997224 53526433850818 94154446430060 51203330929065 19372...

output:

10526941488217362

result:

ok single line: '10526941488217362'

Test #32:

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

input:

54131
7647469690915216 1053934629832204 4050979050456103 7157053759317527 1359034686558027 75002924896790 5322194320385352 7308844160261965 5319030073439368 3292913000064961 417579836379786 3127985139274532 4495574528885204 587309481275135 1123101684966853 6378099618525515 6934936280149512 514335227...

output:

525697866153

result:

ok single line: '525697866153'

Test #33:

score: 0
Accepted
time: 6ms
memory: 4368kb

input:

39017
6100170499756553 2377821796481257 5781528901976567 204453956901724 4562761790719917 1223334748122154 2174995174863390 5614916163824206 1412073064122712 4213443716982958 5514090358497417 2454260360246465 5531084969232069 3638648718332344 2430517895703833 4893834459028986 4043705647447085 354435...

output:

365959815076

result:

ok single line: '365959815076'

Test #34:

score: 0
Accepted
time: 2ms
memory: 3968kb

input:

32003
7528858658771262 4891629066194659 7083724273766494 3888773812906134 2830279663306401 1306511427055367 1860867584051498 3233422604900663 7181400972451477 450355356669955 5245046080107035 2965924402755186 4286311489227902 3787564524726636 3827701958395279 5083101669059704 1842547884117484 381721...

output:

752158635755

result:

ok single line: '752158635755'

Test #35:

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

input:

29910
5919263060689811 5189381390889429 1936577617859020 560510683687134 4197480563936893 3988202401700291 2353929797113062 105502950043834 2226530043433896 1386886833170384 2172252170823694 747331297152131 4856701163073778 4995109245102647 5893601012508203 4067115109924950 5140713589342963 43892008...

output:

122994977011

result:

ok single line: '122994977011'

Test #36:

score: 0
Accepted
time: 10ms
memory: 3884kb

input:

29972
5785452959114393 842807986415255 1347659957916131 4852143598795973 4915226561733938 1148464640873226 5017784585369978 4082195221352007 1291108295525364 709110438897156 824926660781638 3448105437601897 5413831508159535 261488573305415 3918436201757855 5600450113351295 4850987033401869 317670449...

output:

480915724693

result:

ok single line: '480915724693'