koren
For given x, output the n-th decimal digit of sqrt(x).
InputThe first line contains two integers x and n (1 <= x, n <= 1 000).
OutputOutput the n-th decimal digit of sqrt(x).
Input:
Output:
Explanation:
Square root of 2 (with 20 digits is 1.41421356237309504880).
2 20Output:
0Explanation:
Square root of 2 (with 20 digits is 1.41421356237309504880).
Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.