编程介的小学生
2019-04-13 00:56循环跳跃数的一个输出问题的算法,怎么采用C语言的程序的方式来实现
Problem Description
Now give you two integers n m, you just tell me the m-th number after radix point in 1/n,for example n=4,the first numble after point is 2,the second is 5,and all 0 followed
Input
Each line of input will contain a pair of integers for n and m(1<=n<=10^7,1<=m<=10^5)
Output
For each line of input, your program should print a numble on a line,according to the above rules
Sample Input
4 2
5 7
123 123
Sample Output
5
0
8
- 点赞
- 回答
- 收藏
- 复制链接分享
0条回答
为你推荐
- 【问题描述】 编写一个程序,从键盘接收一个字符串(长度不超过20),采用插入排序,按照字符顺序从小到大进行排序,最后输出排序后的字符串。
- c语言
- 1个回答
- 这是一个关于C语言输入输出函数的问题
- c语言
- 4个回答
- 采用算法计算一个几何问题,计算围栏的长度怎么用C语言程序的实现的方式
- r语言
- Golang
- erlang
- 1个回答
- 一个有关机器人的算法的问题,求助各位坛友,采用C语言
- r语言
- Golang
- erlang
- 1个回答
- 路径的查找方面的一个算法的问题,求大身解决,C语言实现
- path
- lines
- c语言
- numbers
- 1个回答
换一换