#C. 幸运数字

    Type: Default 1000ms 64MiB

幸运数字

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

辰辰同学认为自己的幸运数是不超过NN的非负整数里能被KK整除的最大的数,你能帮他的算幸运数吗?

输入格式

输入—行,包含两个整数NN,KK(1N1 ≤N,K2×109K≤2×10^9)。

输出格式

输出—行,包含一个整数,表示幸运数。

样例

3 2
2

测试1

Not Attended
Status
Done
Rule
IOI
Problem
6
Start at
2023-11-9 14:45
End at
2023-11-9 16:45
Duration
2 hour(s)
Host
Partic.
3