find the nth digit(数论)
来源:互联网 发布:苹果电脑画图软件 编辑:程序博客网 时间:2024/06/05 08:36
Description
假设:S1 = 1S2 = 12S3 = 123S4 = 1234.........S9 = 123456789S10 = 1234567891S11 = 12345678912............S18 = 123456789123456789..................现在我们把所有的串连接起来S = 1121231234.......123456789123456789112345678912.........那么你能告诉我在S串中的第N个数字是多少吗?
Input
输入首先是一个数字K,代表有K次询问。接下来的K行每行有一个整数N(1 <= N < 2^31)。
Output
对于每个N,输出S中第N个对应的数字.
Sample Input
61234510
Sample Output
112124
0 0
- find the nth digit(数论)
- find the nth digit
- find the nth digit
- find the nth digit
- find the nth digit
- find the nth digit
- find the nth digit
- find the nth digit
- find the nth digit
- find the nth digit
- find the nth digit(数论)
- HDU1597 find the nth digit
- hdu find the nth digit
- find the nth digit(math)
- HDU1597 find the nth digit
- HDOJ-1597find the nth digit
- hdu Problem - 1597 find the nth digit
- hdu1597 find the nth digit(规律)
- BLOCK方式实现OC程序中多个页面判定用户是否登录
- 定义跨平台的数据类型
- C#网络编程(异步传输字符串) - Part.3
- synchronized详解(二)
- Android高效加载大图、多图解决方案,有效避免程序OOM
- find the nth digit(数论)
- synchronized详解(三)
- 国外人对Qt的评价
- Android 中Webview 自适应屏幕
- unity实现鼠标框选
- 牛人的题目(位运算一)
- 调用COM组件服务器正在运行中解决方法
- GIT & REPO & GERRIT (二)
- C#网络编程(订立协议和发送文件) - Part.4