首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Description Sramoc (K, M) said the figures used in 0,1,2 ..., K

Description Sramoc (K, M) said the figures used in 0,1,2 ..., K

  • 资源大小:2.48 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: VHDL c++

资 源 简 介

描述 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

文 件 列 表

描述.doc
z.c
VIP VIP
0.173344s