UVA Number Sequence(规律)
来源:互联网 发布:网络依赖症定义 编辑:程序博客网 时间:2024/05/17 02:45
Problem B
Number Sequence
Input: standard input
Output: standard output
Time Limit: 1 second
A single positive integer iis given. Write a program to find the digit located in the position iin the sequence of number groups S1S2…Sk. Each groupSkconsists of a sequence of positive integer numbers ranging from 1 to k, written one after another. For example, the first 80 digits of the sequence are as follows:
11212312341234512345612345671234567812345678912345678910123456789101112345678910
Input
The first line of the input file contains a single integer t (1 <=t <=25), the number of test cases, followed by one line for each test case. The line for a test case contains the single integer i (1 <=i <=2147483647)
Output
There should be one output line per test case containing the digit located in the position i.
Sample Input Output for Sample Input
2
8
3
2
2
Problem source: Iranian Contest
Special Thanks: Shahriar Manzoor, EPS.
代码:
- UVA Number Sequence(规律)
- uva 10706 Number Sequence(数学规律)
- uva 10706 Number Sequence(找规律)
- Number Sequence(规律)
- UVA 10706 Number Sequence (找规律 + 打表 + 查找)
- uva10706 - Number Sequence(找规律)
- 杭电1005 Number Sequence(规律)
- hdu1005 Number Sequence (找规律)
- HDOJ 1005 Number Sequence(规律)
- HDOJ 1005 Number Sequence(规律)
- hdu 1005 Number Sequence(找规律)
- hdoj--1005--Number Sequence(规律题)
- 【HDU 1005】Number Sequence(规律+水题)
- Number Sequence(存在循环规律)
- 【HDU】-1005-Number Sequence(数学,规律)
- HDU 1005-Number Sequence(找规律)
- hdoj 1005 number sequence(找规律)
- Number Sequence 找规律
- Golang的md5加密
- 小知识点——编码表的使用
- POJ 2800 Joseph's Problem
- 转载:各种内存申请函数解析
- 【计算机组成与设计学习笔记】(一)
- UVA Number Sequence(规律)
- 写一点想法、
- 转载:虚拟地址转换成为物理地址
- TFT模块闪屏(Flicker)现象分析
- 【大话设计模式】UML关系在代码中的表现形式
- LeetCode Maximum Product Subarray
- Mobile web application框架技术
- poj_1860
- 简单背包问题-递归非递归实现