Toggle navigation
拓智机器人OJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1164--digit函数
1164: digit函数
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
3
Solved:
3
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
在程序中定义一函数digit(n,k),它能分离出整数n从右边数第k个数字。
Input
正整数n和k。
Output
一个数字。
Sample Input
Copy
31859 3
Sample Output
Copy
8
Source/Category
递归