QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#894489#7036. Can You Solve the Harder Problem?ZhaoZiLongTL 8ms28472kbC++202.1kb2025-02-11 17:04:062025-02-11 17:04:06

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 8ms
memory: 28472kb

input:

2
3
1 2 3
3
2 3 3

output:

14
14

result:

ok 2 lines

Test #2:

score: -100
Time Limit Exceeded

input:

1000
407
205460 200518 200561 199235 198814 198136 198802 206763 198795 200705 205862 209366 204017 209481 206300 198499 197364 200897 208928 196983 205605 206396 205140 201050 199886 207314 196947 207905 204999 203288 200298 198594 198286 197714 206506 203962 197628 201127 206380 199090 200711 2063...

output:

17379714751
485034874045
1486283529
465791030571
491032978008
311990354888
488061706427
494738672242
486806852148
482689159787
44834886370
168037552603
395970329944
493209957458
488023796147
484130787643
341197520555
488909445929
493116046382
9772278463
492081166573
122511793818
487531479667
4726462...

result: