说明Sramoc(K,M)所用的数字
2016-08-23
0 0 0
暂无评分
其他
如何获取积分?
描述
Sramoc ( K , M ) 表示用数字0、1、2…、K-1组成的自然数中能被M整除的最小数。给定 K、M,求Sramoc ( K,M )。例如 K=2,M=7的时候,Sramoc( 2 , 7 ) = 1001。
输入
第一行为两个整数K、M满足2<=K<=10、1<=M<=1000。
输出
输出Sramoc(K,M)。
样例输入
2 7
样例输出
1001-Description Sramoc (K, M) said the figures used in 0,1,2 ..., K-1 component of the natural number M be the smallest number divisible. Given K, M, for Sramoc (K, M). For example, K = 2, M = 7, when, Sramoc (2, 7) = 1001. The importation of the first acts of the two integers K, M satisfy 2 < = K < = 10,1 < = M < = 1000. Output output Sramoc (K, M). Sample input 2 7 sample output 1001
c++
相关源码推荐
局部路径规划算法-DWA算法
0
0
暂无评分
enDAQ-Shock-Data-Share-SRS-Blog
0
0
暂无评分
在Windows应用程序里调用chatGPT
0
0
暂无评分
测试Hello world
0
0
暂无评分
单向射线追踪计算RCS
0
0
暂无评分
暂无评论