我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Just a Numble

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

http://blog.csdn.net/mikasa3/article/details/43673753

http://www.acmerblog.com/hdu-2117-just-a-numble-3262.html

近期文章

  • An easy problem
  • nginx 浏览器怎么过滤文件或目录
  • Hibernate 异常问题
  • 重新设置图片后,图片反而变大
  • 程序中有用open打开dev下面的一个文件,但是这个文件并不存在
  • 关于文章列表缓存的问题
  • 一道算法题 求编程代码
  • qt信号槽和emit 还有鼠标点击事件的问题
  • 免费的C# WPF 报表设计器
  • 用C++编写简单学生学籍管理系统。在线急等
  • Oracle数据库table更新问题
  • 算法题 具体题目如下图
  • 大神看过来 一道很简单的算法题
  • 算法题啊 急求编码 急急急急!
  • 视频多目标检测和跟踪程序 急用
  • jvm 为什么要分方法区,堆,栈
  • jsp页面两个循环嵌套问题
  • 学习高并发 需要租什么配置的服务器
  • 关于C语言指针问题
  • 关于pgsql在宕机后是否会损坏表

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华