QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#811564#9324. Sum of Characteristicsucup-team3583#AC ✓426ms32688kbC++203.1kb2024-12-12 20:47:372024-12-12 20:47:38

详细

Test #1:

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

input:

3
2
2 1
5
3 5 4 1 4
6
1 4 6 1 6 3

output:

4
72
112

result:

ok 3 number(s): "4 72 112"

Test #2:

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

input:

4
6
5 6 3 1 3 2
5
3 1 2 4 3
6
3 4 6 3 3 4
3
1 3 1

output:

109
52
108
14

result:

ok 4 number(s): "109 52 108 14"

Test #3:

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

input:

1332
9
8 8 1 4 5 7 1 8 9
10
2 5 6 4 1 1 8 9 5 3
8
6 7 3 6 6 5 7 6
10
5 3 1 5 3 6 10 7 6 10
7
6 7 4 4 1 6 7
9
5 2 3 8 4 6 6 9 3
5
5 5 5 3 2
5
3 1 4 3 1
7
7 3 2 3 6 5 3
10
5 10 1 5 1 2 4 10 5 7
5
5 1 4 1 4
10
3 2 7 2 10 6 2 4 8 5
6
6 3 4 3 5 1
5
2 4 2 5 4
10
2 6 6 3 5 10 6 3 1 9
5
5 3 4 3 1
10
5 3 10 ...

output:

339
391
277
421
184
317
77
60
157
378
63
413
109
66
444
67
438
61
102
418
56
272
90
287
478
219
60
457
155
224
260
66
155
447
66
365
530
279
190
325
410
227
221
163
153
144
347
68
98
62
67
224
237
326
439
216
114
275
210
254
227
224
176
185
59
66
304
266
183
369
100
177
175
358
299
376
359
491
365
1...

result:

ok 1332 numbers

Test #4:

score: 0
Accepted
time: 112ms
memory: 12872kb

input:

1
100000
44237 80409 45776 94735 39632 63770 28119 73347 47399 28902 87358 27924 65499 23898 54817 50114 96633 37690 11325 46642 94643 47594 9271 47948 47324 58134 27957 20443 88720 89483 20834 94705 77577 7835 30030 59648 37387 76478 8364 66145 76025 12683 79475 1745 33181 57027 43966 81455 67876 1...

output:

169519401976864

result:

ok 1 number(s): "169519401976864"

Test #5:

score: 0
Accepted
time: 84ms
memory: 4540kb

input:

10
10000
9328 3007 6359 7266 2506 909 8114 7484 6914 7493 7111 8537 3405 5708 5765 6343 1892 7548 4926 778 2020 1427 4058 1739 381 4130 8019 8964 2531 255 5911 8005 7296 1763 634 5283 9328 9549 9777 2019 4035 9630 7655 211 4990 2459 5404 5826 1898 7966 5857 3091 8420 1045 8621 3118 8044 4450 8523 71...

output:

177597802326
176978677121
176840985449
177035966701
176164073542
176235761367
176901275085
176659585595
176763529984
177192772793

result:

ok 10 numbers

Test #6:

score: 0
Accepted
time: 42ms
memory: 4532kb

input:

5
10000
6461 1616 4830 4526 6044 7798 9461 4297 447 2799 1632 2708 7471 9122 3131 5510 6124 8540 519 2845 566 9307 4775 7866 8948 7810 1220 9731 7889 8873 4634 2336 1066 8186 5401 1439 8673 6933 2340 1601 6141 844 5029 6986 1464 2488 759 7828 3327 6578 763 5069 3654 8443 4004 4420 1010 341 2459 3152...

output:

176056115833
176116653701
177227123680
177448074600
176537920706

result:

ok 5 number(s): "176056115833 176116653701 177227123680 177448074600 176537920706"

Test #7:

score: 0
Accepted
time: 42ms
memory: 4532kb

input:

5
10000
937 4388 7894 7391 1765 8072 3103 9673 7900 6987 2468 3515 9158 3005 9288 2576 9087 5363 1552 3894 8406 2117 4549 8225 3983 9775 9174 6134 337 5252 6067 4977 4937 5718 3315 7840 3670 9616 9871 5269 4554 8284 6996 5207 1135 1853 5077 7234 3552 1351 6695 4306 9595 4194 2708 3532 1126 6442 4073...

output:

176986387177
177329577167
177135148043
177142125884
177644322355

result:

ok 5 number(s): "176986387177 177329577167 177135148043 177142125884 177644322355"

Test #8:

score: 0
Accepted
time: 39ms
memory: 4596kb

input:

5
10000
8836 6892 3585 7793 8845 7693 8549 3558 958 1915 1469 1232 8728 3878 1612 2095 9217 4017 5948 746 9621 1507 6697 5192 1392 9703 5873 2007 4645 4780 1562 6472 3306 9877 7116 8513 1370 2569 5635 3082 9297 3668 1758 9393 6052 5893 2419 7174 5751 7278 2281 2671 4916 135 1100 1205 971 2428 2732 5...

output:

177181548984
177506835863
177087536176
177211449253
177641497278

result:

ok 5 number(s): "177181548984 177506835863 177087536176 177211449253 177641497278"

Test #9:

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

input:

197
23
22 13 9 15 1 22 4 17 15 9 18 2 8 9 16 21 4 2 6 1 15 11 3
31
19 12 26 17 18 9 27 13 4 17 30 28 1 11 12 1 15 3 18 5 5 26 6 13 5 22 3 25 25 24 25
28
21 21 7 27 16 12 10 28 15 2 17 14 23 3 19 14 8 8 25 6 18 23 26 10 25 9 27 4
27
15 24 8 4 17 2 16 5 23 1 26 10 12 21 2 14 3 25 19 3 11 2 7 13 18 12 ...

output:

4253
10015
8250
6174
729
3610
12738
14889
3875
5799
1443
2891
21993
13356
620
13555
2466
11970
17131
2300
1213
16346
19586
1535
7648
681
10164
5873
4602
14073
6532
15423
7741
3148
15672
1577
4852
4216
990
1111
875
6622
11575
865
1249
930
14397
5742
427
8712
2776
6190
1416
2496
3120
20083
431
23621
2...

result:

ok 197 numbers

Test #10:

score: 0
Accepted
time: 7ms
memory: 3804kb

input:

7
1820
1238 736 184 534 858 271 987 1271 1575 1514 761 1480 1263 1750 24 161 1652 1557 551 512 344 931 27 1113 461 103 1507 1455 1517 228 1769 137 1428 528 1595 290 193 561 1079 169 1028 87 1363 1398 610 659 317 1239 132 1319 504 1048 288 627 1222 539 1403 490 568 321 422 1799 1429 1071 1064 1720 13...

output:

1158099539
288446156
853348168
1202418334
1268183372
878262717
76

result:

ok 7 numbers

Test #11:

score: 0
Accepted
time: 95ms
memory: 3616kb

input:

5493
13
8 5 5 9 12 11 8 2 1 11 7 10 4
91
60 43 63 85 61 64 28 23 48 62 49 1 49 38 84 85 85 44 78 27 75 68 81 70 23 54 16 63 52 39 54 80 45 40 1 36 50 58 38 33 41 16 33 83 10 84 72 68 6 50 56 10 24 9 50 3 35 9 89 30 30 25 89 2 43 77 59 15 52 47 48 69 78 17 72 16 50 51 81 16 44 13 75 33 23 30 87 42 76...

output:

932
224037
16911
47866
282638
100949
63279
207754
49717
127713
1855
30531
179999
23141
133129
896
73090
235882
166965
148804
221411
73786
208260
61237
140434
2393
4413
21326
77393
22011
21442
182439
6455
217908
39971
2282
744
239685
23583
286158
60341
4113
17778
14976
205772
221038
35877
30391
60166...

result:

ok 5493 numbers

Test #12:

score: 0
Accepted
time: 99ms
memory: 3584kb

input:

3997
58
40 22 5 7 21 39 40 44 28 13 42 37 48 48 53 23 53 33 12 9 46 9 1 9 18 55 23 32 43 50 9 13 46 37 31 12 1 9 7 26 46 10 23 28 56 26 23 35 3 55 20 10 13 36 36 26 36 12
68
7 12 14 5 1 45 12 15 39 11 5 55 22 27 1 33 10 40 36 44 45 55 58 26 14 41 2 11 23 56 54 17 63 67 45 31 45 9 53 21 31 42 25 58 2...

output:

60928
92592
81219
252043
126571
193941
198271
93734
112831
49157
40519
94130
157008
176052
113905
128917
199635
166437
189041
168295
109637
64328
63774
110749
101412
47932
76349
129705
119689
122247
90577
216967
153808
99079
58644
68294
72678
67421
170514
141688
46546
146067
71326
142064
104580
1723...

result:

ok 3997 numbers

Test #13:

score: 0
Accepted
time: 166ms
memory: 3752kb

input:

456
930
383 1 920 654 133 625 685 506 200 13 642 429 906 496 554 576 401 577 137 286 24 35 219 40 486 345 100 336 630 411 387 267 602 518 318 806 917 292 605 148 174 53 272 238 867 119 634 250 887 418 447 786 897 165 253 873 782 840 535 174 58 705 369 535 842 245 83 79 416 686 526 49 470 70 439 546 ...

output:

159777610
22637182
69794903
22731262
23421795
152793675
139763819
28642436
151924358
26840801
152797775
6631263
96730098
112251946
75790513
78535565
61211663
14640074
44777299
32733115
174051943
102700910
7096622
190619980
47672403
35689556
31156297
16811551
7315180
29397688
39163724
22509795
324690...

result:

ok 456 numbers

Test #14:

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

input:

199
1288
304 502 1068 118 357 77 100 53 1255 887 506 75 76 9 107 424 252 1022 276 879 1075 994 467 425 451 513 833 289 1024 278 94 847 1122 716 1013 1149 702 1153 531 932 390 1086 580 424 972 432 151 832 131 746 893 735 1022 729 293 910 695 894 1011 551 242 1264 645 1083 527 1223 1165 646 251 362 13...

output:

418457711
566912554
611845610
1057604150
368901964
1059205761
294267047
262387695
298150766
1524214314
776201960
409432095
375281515
339897730
763192715
902514703
1417264892
1295181837
458703574
1342730498
455845091
227370782
609090363
802052704
819491024
990874244
486271275
449384095
1061470585
103...

result:

ok 199 numbers

Test #15:

score: 0
Accepted
time: 242ms
memory: 4708kb

input:

38
3208
2647 2136 299 1157 2364 2151 1664 2597 24 408 2796 1379 3110 1031 266 3156 1588 2883 3019 3002 2142 279 2532 530 2689 3149 1830 13 33 2158 1453 1034 1131 755 610 1738 763 320 1713 2715 208 275 2628 2582 1939 1993 2157 2858 1060 2242 1256 2222 213 1192 3183 506 205 2708 2132 3191 2750 1729 24...

output:

6147341829
78408106855
277636580111
20890238208
8370959212
178092600280
267147016809
16304704980
81131266725
226988383749
29564000655
7107446335
3456228316
248735074650
270013278375
161171546100
72484922065
102693435218
250290253442
17656830991
64821657590
36233677779
158365157734
200662907745
18274...

result:

ok 38 numbers

Test #16:

score: 0
Accepted
time: 295ms
memory: 10376kb

input:

11
23055
5163 2849 18487 9784 17481 6069 6601 6529 2956 13914 15612 16605 23046 7200 433 18532 11760 13000 15691 10212 856 7063 18649 10957 20767 5661 12216 4856 15792 3160 22649 7270 13223 16075 10663 15930 17778 5079 4097 5683 39 9225 7899 13462 195 7562 12371 15753 2320 7934 4058 682 1368 2372 16...

output:

2119217641249
9107608653195
2358945931134
2416105501117
814046271885
7536848808588
3282901474105
2295063440007
10245329907028
10317707569019
221684588522

result:

ok 11 numbers

Test #17:

score: 0
Accepted
time: 342ms
memory: 13620kb

input:

3
100000
53835 80790 73410 60270 55857 19616 58773 34592 38280 1640 19911 33088 11380 55455 84734 40625 63614 94842 97572 45979 35411 16819 59240 2152 81664 54406 50363 68392 65468 38037 28404 2221 62975 29797 11340 66032 21827 47487 9347 43754 54762 31248 30681 60732 84215 22761 53877 22983 77843 4...

output:

169811557468825
169967129581109
169810541074167

result:

ok 3 number(s): "169811557468825 169967129581109 169810541074167"

Test #18:

score: 0
Accepted
time: 402ms
memory: 32576kb

input:

1
300000
224689 132151 271782 265024 80949 275931 105703 227312 68708 168561 116217 234786 184898 244635 286820 242252 220314 261889 80660 7910 260123 152493 50840 102350 167574 219343 294118 181412 235394 122649 150709 239182 150265 64291 116737 68822 243448 176808 110218 131783 64963 114376 157141...

output:

4547275735401193

result:

ok 1 number(s): "4547275735401193"

Test #19:

score: 0
Accepted
time: 332ms
memory: 12628kb

input:

4
80763
59664 22034 42920 78286 12400 28030 12531 74398 68291 1299 29626 61726 20128 16675 52526 56719 65401 48013 33942 7886 48734 16983 61625 13003 55603 13876 46342 24905 80390 3106 28058 34049 35360 22412 4087 38616 69516 56047 75172 28967 6795 33247 57873 33373 17468 14532 51692 40848 73244 379...

output:

89541240466677
108103910400958
151429145319637
8696153155296

result:

ok 4 number(s): "89541240466677 108103910400958 151429145319637 8696153155296"

Test #20:

score: 0
Accepted
time: 406ms
memory: 32660kb

input:

1
300000
200133 245995 107782 298675 125042 175089 283331 258967 127333 4116 169818 75508 96990 168173 203947 45047 38781 74204 101976 4178 106857 282116 285516 217112 92941 84877 54641 243940 68854 104386 39768 56147 164598 288049 109461 183621 159908 125710 25473 258688 93114 64783 153111 80877 87...

output:

4546735514508299

result:

ok 1 number(s): "4546735514508299"

Test #21:

score: 0
Accepted
time: 426ms
memory: 32352kb

input:

1
300000
236304 5 31144 45813 113383 255373 187259 262012 152427 32161 14488 217266 84901 229983 148345 69366 194818 160424 204445 167757 145140 70276 157895 98366 171215 41692 152191 81430 145772 168127 28815 87589 90601 47197 171782 181600 199142 224943 262745 260573 155305 9197 25245 57433 75899 ...

output:

4547092729900815

result:

ok 1 number(s): "4547092729900815"

Test #22:

score: 0
Accepted
time: 393ms
memory: 32584kb

input:

1
300000
257488 198979 17745 167037 127625 169012 11808 278065 106797 200308 120468 35463 219861 232438 285059 198430 21748 87780 80247 291368 202186 138425 233933 198923 170674 35751 129047 24227 264886 6323 84474 277086 51445 234900 166832 22686 216196 247 75784 4635 139018 31102 85057 158335 2406...

output:

4548729311422786

result:

ok 1 number(s): "4548729311422786"

Test #23:

score: 0
Accepted
time: 397ms
memory: 32660kb

input:

1
300000
17958 275878 108496 149423 219197 151511 256728 135878 62797 286555 8832 184123 33311 233677 259995 163205 87923 106206 288722 179244 176283 201776 162658 240942 116958 51548 271612 41085 147478 6445 94564 166974 244146 212323 161107 38283 277365 22354 106101 36754 199189 189152 150988 1606...

output:

4547748913348961

result:

ok 1 number(s): "4547748913348961"

Test #24:

score: 0
Accepted
time: 426ms
memory: 32572kb

input:

1
300000
38615 149298 215292 138794 55829 187215 251987 160997 176767 211282 251897 184381 288931 65145 128319 49729 42806 131684 43259 240260 273776 187962 141833 137948 142286 185954 78277 176998 111439 5482 32466 168415 103736 286084 6774 179436 214800 183172 72124 4179 75972 244931 156336 65248 ...

output:

4548026271733379

result:

ok 1 number(s): "4548026271733379"

Test #25:

score: 0
Accepted
time: 404ms
memory: 32512kb

input:

1
300000
16274 250741 294155 247929 128011 14369 167319 225827 164220 197259 205370 51407 299231 38496 151864 116962 119043 172222 142025 92118 254635 156922 227195 130969 103149 211802 179502 258253 236020 123612 125847 165734 140735 147054 271358 251055 257279 88755 191392 7493 278525 39076 220269...

output:

4547004614448122

result:

ok 1 number(s): "4547004614448122"

Test #26:

score: 0
Accepted
time: 403ms
memory: 32688kb

input:

1
300000
84953 117217 142991 57566 135406 218671 38304 215956 294821 268450 162727 73305 265644 222044 296588 157853 29890 161591 183206 32289 126298 81152 144388 252 100508 273206 199495 34649 115172 160400 264005 88183 252993 135188 103944 98024 919 194849 248013 15058 67934 85158 289830 163761 21...

output:

4547600990183774

result:

ok 1 number(s): "4547600990183774"

Test #27:

score: 0
Accepted
time: 394ms
memory: 32508kb

input:

1
300000
234388 107838 24626 56377 238154 170642 144241 26960 230484 246685 293432 257700 177025 136476 53400 296966 1607 36722 250823 248870 127677 173826 131136 292702 195583 234038 121090 188456 102446 181915 59469 59267 20013 96322 276136 78034 14597 72577 290749 19452 126497 286800 266747 12077...

output:

4548278822472840

result:

ok 1 number(s): "4548278822472840"

Test #28:

score: 0
Accepted
time: 395ms
memory: 32556kb

input:

1
300000
142308 70200 228762 58631 5285 178002 190972 235054 274284 31938 104865 33260 88516 286309 201892 187043 180152 7871 161476 152183 221627 202868 92805 282063 178241 232592 239309 123448 143908 229632 8711 184930 7136 82039 294019 237089 189911 60874 165620 228301 281133 86068 221776 198114 ...

output:

4547088723075716

result:

ok 1 number(s): "4547088723075716"

Test #29:

score: 0
Accepted
time: 402ms
memory: 32612kb

input:

1
300000
35482 22908 19513 208314 229561 27797 11701 49763 54477 250889 134445 6112 26158 287548 219932 276010 246328 193593 26848 215867 28428 142027 21530 156786 124525 282981 249170 131794 193796 62459 142993 207522 199837 59463 296806 119982 251080 215685 20130 93124 41304 244118 287707 243513 1...

output:

4548284745155676

result:

ok 1 number(s): "4548284745155676"

Test #30:

score: 0
Accepted
time: 410ms
memory: 32624kb

input:

1
300000
56139 29031 250501 197684 66193 187693 174256 117986 211550 218720 244806 182178 157585 119016 45152 29831 201211 219071 81385 144179 293217 119701 705 221088 149853 117387 180027 143515 157757 61496 256703 243555 59427 519 133961 269647 180003 243799 161960 227845 50792 256794 293056 27232...

output:

4548952122709861

result:

ok 1 number(s): "4548952122709861"

Test #31:

score: 0
Accepted
time: 388ms
memory: 32688kb

input:

1
300000
33798 297770 72468 174115 138374 147551 222292 50111 199004 161593 155175 173396 159374 92367 244505 105575 110152 92313 47447 128741 106780 97173 86067 214109 110717 267427 281252 224770 115042 179626 174276 206282 229130 28785 107056 32753 55186 282086 105420 231159 86048 94043 224284 221...

output:

4548533260609584

result:

ok 1 number(s): "4548533260609584"

Test #32:

score: 0
Accepted
time: 401ms
memory: 32664kb

input:

1
300000
291800 221438 62384 222275 16232 25699 238500 283995 177255 90696 293924 286105 19219 194821 92392 37438 280417 21606 127871 169121 26392 171276 54987 67309 132532 270220 65280 204097 40355 226030 92393 3918 1387 27279 21859 199421 154018 154079 120833 69223 134549 163748 197766 117275 610 ...

output:

4547390100920685

result:

ok 1 number(s): "4547390100920685"

Test #33:

score: 0
Accepted
time: 399ms
memory: 32608kb

input:

1
300000
34514 47243 207971 106008 297084 58083 200336 246644 116029 71434 272797 222715 273538 221023 134242 80551 293903 278004 95403 208391 161082 249651 92665 83770 283054 41271 48673 204183 145706 208879 68203 214153 190304 261246 108564 77419 270806 178974 46316 49712 109512 196504 262137 1795...

output:

4548605509290175

result:

ok 1 number(s): "4548605509290175"

Test #34:

score: 0
Accepted
time: 399ms
memory: 32588kb

input:

1
300000
70913 296664 113200 21594 223181 63135 22848 43885 31478 180937 32421 65146 243276 277228 267263 250519 19810 135615 197460 228829 28431 273630 144237 225003 251822 115338 240663 248515 109214 203750 240836 223628 296418 147387 141223 272430 212225 83093 7548 20281 159143 170403 122781 1021...

output:

4547238974075350

result:

ok 1 number(s): "4547238974075350"

Test #35:

score: 0
Accepted
time: 401ms
memory: 32556kb

input:

1
300000
208360 82618 27564 199135 89941 45639 107390 237611 187965 199814 159783 212991 210706 58598 168988 280509 135916 259834 27702 183818 282851 101976 13872 2670 270933 118716 64266 70744 260678 4806 14249 86488 158427 94999 119700 17091 157502 58137 206616 246003 271966 92916 73030 279588 210...

output:

4547436845040034

result:

ok 1 number(s): "4547436845040034"

Test #36:

score: 0
Accepted
time: 393ms
memory: 32316kb

input:

1
300000
17439 155398 226738 250438 189099 203054 13058 156257 233600 233620 82677 90917 185928 256523 64527 63343 56704 31098 190727 153903 163258 73435 80106 63915 38555 129118 57046 89787 224957 214596 50368 182634 271566 241860 179662 206555 229040 12073 215390 253378 106327 238513 129149 81831 ...

output:

4548175729212782

result:

ok 1 number(s): "4548175729212782"

Test #37:

score: 0
Accepted
time: 403ms
memory: 32484kb

input:

1
300000
216689 141552 198745 87964 202929 124766 94236 112837 180565 88995 133784 122612 37216 22814 210898 129690 287865 78707 119057 200621 224360 29992 207010 94533 259037 31496 131702 239743 67082 6819 146111 227517 110756 36972 48406 46949 187942 282330 98392 271646 268845 72135 96964 267062 9...

output:

4548656109640602

result:

ok 1 number(s): "4548656109640602"

Test #38:

score: 0
Accepted
time: 400ms
memory: 32460kb

input:

1
300000
84425 262802 140605 246316 222939 227208 94311 295127 113521 102435 211517 285011 168133 234701 139038 131868 21081 291859 68652 223442 234385 212039 218925 230230 224692 61693 196011 170002 92303 148558 7733 9422 249810 141464 215068 88731 119633 190651 221303 200524 245092 69661 290623 67...

output:

4546927371289143

result:

ok 1 number(s): "4546927371289143"

Test #39:

score: 0
Accepted
time: 403ms
memory: 32688kb

input:

1
300000
33426 128493 83528 91533 224436 52824 6665 288054 66798 216448 98981 19678 43784 238928 13333 185202 274156 234170 110871 147748 32202 40273 80427 98251 69524 140845 276727 106305 209315 32490 226693 63587 298896 267624 174016 9045 78236 127692 271002 52636 285544 125374 60361 147169 214782...

output:

4549063815152709

result:

ok 1 number(s): "4549063815152709"

Test #40:

score: 0
Accepted
time: 410ms
memory: 32604kb

input:

1
300000
103243 214751 258865 261961 77255 96501 118634 241212 101050 152157 55922 216882 93177 46116 69207 64927 7115 212553 3450 217264 229675 72162 197170 6722 36298 245624 10375 94504 142890 163654 103191 289833 203716 238174 296115 80095 165603 44164 40291 192729 282087 83633 183966 168633 6041...

output:

4548113911654423

result:

ok 1 number(s): "4548113911654423"

Test #41:

score: 0
Accepted
time: 399ms
memory: 32600kb

input:

1
300000
224915 47551 59939 48233 57525 198180 205281 235816 291517 213399 16587 159813 157746 212282 188649 236438 71452 18612 172649 124307 127755 191473 197881 163001 169296 141088 61775 207626 56257 282483 224961 209132 88186 179778 278541 61606 243511 216200 210802 179686 90460 133349 238677 17...

output:

4547483125607596

result:

ok 1 number(s): "4547483125607596"

Test #42:

score: 0
Accepted
time: 398ms
memory: 32676kb

input:

1
300000
282642 178324 134650 299177 17151 119534 106280 149675 103186 222033 182215 273486 61615 254178 16614 10194 49199 23035 211687 216682 130366 104682 160450 260670 296733 261649 106113 239082 290721 198852 93058 15869 72562 63598 268952 267483 152557 69324 138634 271452 271459 192528 158739 1...

output:

4546299896810037

result:

ok 1 number(s): "4546299896810037"

Test #43:

score: 0
Accepted
time: 395ms
memory: 32408kb

input:

1
300000
13398 139502 155655 83053 72153 89880 61149 199631 37902 78497 74764 126658 63563 144987 24872 284033 119869 30410 234421 215964 237250 278119 275693 28308 109742 45790 213278 217153 13802 194864 189289 287276 5616 155442 78116 131061 1649 247309 139449 93902 213679 154716 176805 295741 599...

output:

4547792125898150

result:

ok 1 number(s): "4547792125898150"