Tasks:
 
Task DescriptionDiscussion (0)
Task :: cifre
Natural numbers are written one after another so they form a sequence of infinite length: 12345678910111213... Your task is to, for a given number N, find the Nth digit of this sequence.

INPUT:
The first (and only) line of standard input contains a number N (1 <= N <= 2*10^9).

OUTPUT:
To the standard output, output the Nth digit of defined sequence.

Input:
20

Output:
1
Submit Solution
:
:
Available Languages
Task info
Name:cifre
Time:1 sec.
Memory:1 MB
#Tests:5
AddedBy: admin
Task Ratings
Difficulty:

3.5 (43 votes)
Quality:

3.6 (37 votes)
Acceptance Rate
Recent Submissions
Fastest Solutions
UserTime
frud___ 0 s.
rajkon 0 s.
boba5551 0 s.
mitke 0 s.
relja 0 s.
sgoran 0 s.
troka 0 s.
pmarko 0 s.
nikolas 0 s.
eternity 0 s.
Solved By