#T619. 讨厌的小数点
讨厌的小数点
Description
Little Tu has always disliked decimal points—they give him a headache at first sight. Unfortunately, Little Ya gave him a problem, asking:
Given a decimal number x, can you determine what digit is at the nth position after the decimal point? (1 ≤ n ≤ 6)
Upon seeing this problem, Little Tu immediately got a headache and fainted. Can you help him out?
Input Format
First, input an integer t, indicating the number of test cases, followed by t lines:
Each line contains a decimal number (the input is guaranteed to be in the form of a.b, and for simplicity, there are no repeating decimals),
followed by an integer n, representing the nth digit after the decimal point.
Output Format
Output a single digit representing the nth digit after the decimal point.
CodesOnline
The translation maintains the original markdown heading format (`##`) and preserves the code block structure. The content "CodesOnline" is kept as-is since it appears to be a proper name or brand term that typically does not require translation.
Note: If "CodesOnline" is intended to be translated (e.g., as "在线代码" or similar), please provide context, and I'll adjust accordingly.