HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50456 - nth Digit of a Number

Guest
• Discussion of problem (2)

Section problems

• 50819 - Linked Numbers
• 50519 - Image Filtering
• 50798 - Passing the course
• 50799 - OSHEE Electric Bill
• 50833 - Min of Odd Positions
• 50821 - Derivative of an array
• 50808 - Total Distance Traveled
• 50452 - Multiplication Table
• 50456 - nth Digit of a Number
• 50817 - The Knight Move
• 50463 - Drawing a Triangle
• 50537 - esreveR Triangle
• 50385 - From m to n
• 50966 - TVSH
• 503013 - DNA
• 50970 - Marbles
• 50943 - Word Game

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