409126: GYM103443 D Largest Remainder

Memory Limit:1024 MB Time Limit:0 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

D. Largest Remaindertime limit per test1.0 smemory limit per test1024 megabytesinputstandard inputoutputstandard outputExamplesInput
3 1
1 2 3
Output
321
Input
3 10
1 2 3
Output
213
Input
3 100
1 2 3
Output
132

加入题单

上一题 下一题 算法标签: