QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#512392#1172. Junkyeom's ContestHuangHanShengTL 1040ms13592kbC++111.6kb2024-08-10 14:23:012024-08-10 14:23:03

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 7964kb

input:

7
1 2 3 4 5 6 7

output:

-1

result:

ok 1 number(s): "-1"

Test #2:

score: 0
Accepted
time: 1ms
memory: 9940kb

input:

8
1 2 3 4 5 6 7 8

output:

35

result:

ok 1 number(s): "35"

Test #3:

score: 0
Accepted
time: 1ms
memory: 10020kb

input:

10
5 5 5 5 5 5 10 5 5 5

output:

35

result:

ok 1 number(s): "35"

Test #4:

score: 0
Accepted
time: 1ms
memory: 9880kb

input:

7
141492387 72235422 49924898 183332532 178192988 192684636 147499872

output:

965362735

result:

ok 1 number(s): "965362735"

Test #5:

score: 0
Accepted
time: 1ms
memory: 9992kb

input:

8
24608515 140751563 43705451 113994713 52509537 32130709 117463343 87041819

output:

-1

result:

ok 1 number(s): "-1"

Test #6:

score: 0
Accepted
time: 1ms
memory: 10012kb

input:

9
2691939 114300407 182710197 139624191 31858791 176609486 152268030 30225807 79200011

output:

876571113

result:

ok 1 number(s): "876571113"

Test #7:

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

input:

10
2030518 198196518 40274071 183359971 71550121 96204862 199843967 46173607 196619138 2690754

output:

991948184

result:

ok 1 number(s): "991948184"

Test #8:

score: 0
Accepted
time: 1ms
memory: 9904kb

input:

11
85146646 26521171 179278816 8989449 50899375 135650934 129615950 94390299 27618702 179962232 2512657

output:

854944252

result:

ok 1 number(s): "854944252"

Test #9:

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

input:

12
63230070 95037311 78092074 34618927 179991732 80129711 4612126 132541583 48552857 167299118 76773097 141033928

output:

874125457

result:

ok 1 number(s): "874125457"

Test #10:

score: 0
Accepted
time: 1ms
memory: 10008kb

input:

20
52405440 186588704 109061481 152472140 16115810 148658854 66743034 28305150 77780684 119361360 8050516 1554301 154478790 146543678 187546138 32279893 41889899 80960260 117802881 188066499

output:

1164354803

result:

ok 1 number(s): "1164354803"

Test #11:

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

input:

21
135521569 160137548 7874739 123325809 195465063 93137631 46771913 171489138 3747543 1665542 82310956 163114045 92278880 171370111 59773357 109727810 30170326 140240523 86200899 82106547 153987440

output:

1155803868

result:

ok 1 number(s): "1155803868"

Test #12:

score: 0
Accepted
time: 1ms
memory: 10012kb

input:

22
8572289 133686393 146879484 148955287 174814317 132583704 71511192 114673126 24681699 189002429 61604100 19641085 189887482 50972352 176710976 187175727 58642240 134679569 159631621 26403492 101051189 178325936

output:

1255548488

result:

ok 1 number(s): "1255548488"

Test #13:

score: 0
Accepted
time: 1ms
memory: 10024kb

input:

23
91688417 162011045 45692742 174584765 103906675 22286673 51540072 57857114 45615854 71306611 190640347 35976636 127687572 170766082 48938195 169656348 141889962 193959831 128029640 120443541 48114937 198473713 159552755

output:

1260092131

result:

ok 1 number(s): "1260092131"

Test #14:

score: 0
Accepted
time: 1ms
memory: 10020kb

input:

50
134170081 56797965 35040736 45224325 5102476 106020832 167954026 119923972 151391400 39247099 72095141 146927386 116079799 14749285 135104039 39200818 179623552 24872203 57355273 63838168 42352783 174850365 194389351 35930945 10847154 80608047 3727586 122549184 104520573 35608953 66338849 7153646...

output:

1251688145

result:

ok 1 number(s): "1251688145"

Test #15:

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

input:

101
159147539 81989858 197503381 187945335 45245589 36372876 25243512 197516473 183157104 17275611 125659901 2325559 70116022 68253157 7587401 51206763 121627071 196400807 130951940 56514802 188575142 92512898 71305437 12187408 113124298 142632634 105677315 168121898 132428879 47722230 82875309 8100...

output:

1350461249

result:

ok 1 number(s): "1350461249"

Test #16:

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

input:

1000
57869894 12244197 102751325 191063232 21704902 118351183 111667041 14131481 156158495 132207266 11890152 1118704 74105790 120464458 163136546 186056258 1743030 36389366 141427747 104710546 10486332 10273816 162407523 90627683 144009771 58562152 115779647 9419967 188646785 82973793 155731062 287...

output:

1393894383

result:

ok 1 number(s): "1393894383"

Test #17:

score: 0
Accepted
time: 4ms
memory: 8276kb

input:

12345
138358873 75730912 161003206 117698439 135780183 199942555 166283522 34722641 103042592 165235220 10883424 34965397 130706431 164308262 5741877 140380744 87082738 103112834 147206601 145290355 159504940 162577962 141824730 153153205 65312404 57169655 12163862 144205759 197708613 6631189 122566...

output:

1399794489

result:

ok 1 number(s): "1399794489"

Test #18:

score: 0
Accepted
time: 317ms
memory: 13592kb

input:

123456
70379436 165625470 110791402 26345339 87853136 36815142 85418498 20677785 109678310 66720141 110422259 116030531 97600431 83933608 14345970 46783923 60047855 175823378 124835444 19676932 130471536 134850184 104759734 173714359 140683776 51589230 93486389 169013551 193952750 156996424 33525302...

output:

1399977050

result:

ok 1 number(s): "1399977050"

Test #19:

score: 0
Accepted
time: 1040ms
memory: 13492kb

input:

234567
173603673 35133007 197048658 87158889 55628794 100958685 54724972 192287997 29648754 179537592 4360303 111664667 39298687 184083994 39640284 141334927 11544451 12768129 84930838 58740649 186713348 191631666 15026150 106283968 198106668 129396916 113083128 25391789 22605129 178721617 81031004 ...

output:

1399973986

result:

ok 1 number(s): "1399973986"

Test #20:

score: -100
Time Limit Exceeded

input:

345678
131603718 54383647 188338618 147972439 23404452 15359124 24031446 18674018 44586494 187322339 58106859 107298803 31253839 179201675 64934598 191175530 68073751 104488689 150058936 57612878 147987863 48413149 20259863 133820874 160562264 7204602 172871355 26994219 186416292 55222617 128536706 ...

output:


result: