delete pics to save space
This commit is contained in:
15
history_source/信息学奥赛一本通/1.6.2.2.cpp
Normal file
15
history_source/信息学奥赛一本通/1.6.2.2.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
short digit(int n,int k)
|
||||
{
|
||||
for(int i=1;i<k;i++) n/=10;
|
||||
return n%10;
|
||||
}
|
||||
int main()
|
||||
{
|
||||
int n,k;
|
||||
scanf("%d%d",&n,&k);
|
||||
printf("%d\n",digit(n,k));
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user