HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


090. 50456 - nth Digit of a Number

Guest
• Discussion of problem (2)

Volume problems

• 060. Problem 2
• 065. 50394 - Water Bills
• 070. 50465 - How many students h...
• 072. 50473 - Counting Circles Positions
• 074. 50396 - Cinema Tickets - 1
• 075. 50363 - Class GPA Average
• 080. 50248 - Power of two
• 085. 50333 - Series of Squares
• 090. 50456 - nth Digit of a Number
• 095. 50651 - Largest power of two
• 110. 50288 - Even numbers in even...
• 115. 50425 - Calculating Weekly Pay
• 118. 50514 - Bookkeeping
• 120. 50426 - Calculating Sales
• 125. 50484 - Number Of Letters
• 130. 50440 - Call Center
• 132. 50504 - School contest

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan. Difficulty Alpha

nth Digit of a Number

You will be given a number (num), find nth digit from the right of the number.

Input specification
You will be given the two integers num and n where 0 ≤ num < 4x109 and 1 ≤ n ≤ 10

Output specification
Show one digit number which is nth digit of the given number.

Sample Input I
  123456 4
Sample Input II
  6543210 2
Sample Output I
  3
Sample Output II
  1


Для отправки решений необходимо выполнить вход.

www.contester.ru