5154: P8649 [蓝桥杯 2017 省 B] k 倍区间

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

Description

Input

Output

Sample Input Copy

5 2
1  
2  
3  
4  
5  

Sample Output Copy

6