QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#786272#7079. Arrayucup-team4645TL 1318ms27412kbC++143.6kb2024-11-26 20:57:472024-11-26 20:57:49

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
4
1 2 3 4

output:

22

result:

ok "22"

Test #2:

score: 0
Accepted
time: 148ms
memory: 21928kb

input:

100000
10
873324878 873324878 873324878 873324878 891656676 891656676 615245360 873324878 873324878 873324878
10
560723194 560723194 797429144 797429144 560723194 797429144 819647695 560723194 797429144 560723194
10
750627649 746781323 756277046 756277046 750627649 750627649 756277046 750627649 9142...

output:

134
141
180
168
109
95
181
185
144
149
202
158
161
107
210
210
255
104
210
109
82
158
149
201
154
109
206
158
161
161
158
134
206
198
161
109
143
152
183
156
171
201
149
104
210
161
181
152
152
250
185
243
206
158
152
128
147
203
225
143
203
198
206
201
158
109
114
100
183
161
162
183
154
222
181
14...

result:

ok 100000 tokens

Test #3:

score: 0
Accepted
time: 221ms
memory: 21996kb

input:

39978
23
512481863 596944631 624383245 441725511 441725511 594496544 441725511 624383245 698754670 596944631 182448912 636350614 596944631 391310300 624383245 391310300 698754670 596944631 441725511 182448912 826649520 351713941 596944631
24
789886131 679943285 874352131 191233114 214841280 21484128...

output:

2322
2416
4226
1974
3362
1631
2373
2521
3618
4540
2589
2104
2692
1407
2757
2394
3938
2106
2769
3209
3418
3828
2339
3954
5404
3191
1734
4260
2178
1354
2829
2552
2820
2385
3102
3442
3459
3027
3631
2399
1682
4564
4494
4217
3756
4176
3290
4109
1702
3740
4220
4117
2118
1840
4223
3499
3834
2472
5465
1636
...

result:

ok 39978 tokens

Test #4:

score: 0
Accepted
time: 227ms
memory: 22008kb

input:

10000
100
70652501 126219335 870011044 503878453 331807482 42366188 570696778 892481058 11179909 898060545 596710776 892481058 892481058 126219335 938507063 540380652 869222706 898060545 380041360 643567581 977928808 655190742 75768776 126219335 386687451 513015608 898060545 540380652 798597796 7794...

output:

156439
177539
142728
105896
98255
145550
158303
139241
142500
123767
164463
173494
162837
133032
161874
108825
159157
176582
143686
146818
161864
166700
93293
121994
166017
96652
176532
106752
141748
145107
147984
139577
153293
146263
112899
130505
178781
186526
162804
138862
106517
170352
136899
13...

result:

ok 10000 tokens

Test #5:

score: 0
Accepted
time: 152ms
memory: 21980kb

input:

2854
312
996363788 551569708 173701735 548916953 952258024 368183068 334969896 577986978 880966548 888335092 56554707 551569708 115473602 634253580 72462813 954601359 56554707 551569708 91899583 889292360 819443410 501067697 944057852 123522638 888335092 957353706 173701735 979062687 618781540 72462...

output:

2061224
1860838
1010356
1174361
4143500
1474589
1510609
2004600
2605061
2155980
2176727
2397067
1531557
4124825
2541238
2474761
5227207
1465667
1794014
2862489
1879552
3233292
1783499
4062518
2333798
1421177
1282363
2275831
749765
836505
1370414
3239916
1942884
1581051
3075330
992985
2425172
1956879...

result:

ok 2854 tokens

Test #6:

score: 0
Accepted
time: 348ms
memory: 22384kb

input:

672
1783
13633474 314389801 314389801 478689538 360878436 473612024 360878436 303057784 473612024 495382779 360878436 216051209 478689538 495382779 234042033 975268148 555927466 555927466 303057784 495382779 478689538 314389801 303057784 495382779 710763719 473612024 478689538 314389801 710763719 36...

output:

25438555
169572802
576895114
782992072
520053889
306556547
978922119
730923783
773363213
622338884
186399639
1176724955
626653188
777367734
675391210
63817780
241450985
332034356
492689051
285034414
1215181602
403072096
659235443
181531295
1288006738
196234032
124249254
750551173
474661528
243082576...

result:

ok 672 tokens

Test #7:

score: 0
Accepted
time: 339ms
memory: 22128kb

input:

665
1884
988528257 299902608 10367339 690685855 297786544 151593747 178772726 128994663 356336120 679465966 391875298 926876636 570229960 916252616 981836665 180968279 383300245 495353761 613581589 820295995 569877672 29530262 648858041 696880729 936076029 546413376 955368107 569952181 233710412 921...

output:

1031986085
774354144
453499837
908363568
17851109
339542359
284218464
419696363
139411796
23621377
371250815
412164350
205376037
528615993
137490262
859288246
345876515
545360602
103616731
106611787
220924277
545575580
242323074
417131282
291975252
453966968
91112734
37085713
11881659
75083565
33927...

result:

ok 665 tokens

Test #8:

score: 0
Accepted
time: 1153ms
memory: 25420kb

input:

66
14356
253106248 592710041 414072883 103006455 322512168 697793017 901854511 153070792 719309056 122895833 885927063 180171049 637838473 327047040 524579686 524613030 298082160 632660508 558592102 901854511 905263602 47554049 372196525 789204610 976530384 367395091 187162155 67938161 370104072 601...

output:

23479834161
799502034134
675205839464
500643795049
574278312221
291248855617
397226866760
53495851508
609398896187
61697357337
434398239821
609248235282
263116591609
107700514782
748959952111
738507091193
591138130194
130173412046
290538027417
264876584681
451738843253
139503470854
368222643935
4896...

result:

ok 66 tokens

Test #9:

score: 0
Accepted
time: 1318ms
memory: 27412kb

input:

70
11577
39271197 465266350 880381180 919862794 283336256 699576432 592085978 990211654 28463348 374163546 787974727 921480225 147274330 465132652 943772918 182098783 960046651 475285160 271010889 521970889 909368831 989371018 420557956 382878850 409934528 512499811 975508706 185955347 254218975 588...

output:

238654170399
180637525482
206136021261
813929855071
294864661408
299629365609
310169518941
383763137763
343595506605
553914063017
536500010060
298432699348
177496050451
452245271911
1260424768862
268665288590
328382007261
106563243988
392005248051
338771160034
402789149006
470752638478
568901993661
...

result:

ok 70 tokens

Test #10:

score: -100
Time Limit Exceeded

input:

6
156266
744545865 498279220 516785883 422011009 210138593 449193083 51835703 736667794 182317904 114470255 65501621 620674663 549821600 521784690 616832697 567941606 489395176 199975946 743493420 810387200 816885010 229472163 363378103 902667962 726557335 900234267 629699869 936973062 622020041 810...

output:

479632657461689
362632508225192

result: