mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
26a72e347d
2100-2199
18 lines
277 B
C++
18 lines
277 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int n,m,i,t,x;
|
|
int s;
|
|
while(scanf("%d%d",&n,&m)!=EOF)
|
|
{ s=1;
|
|
while(m--)
|
|
{
|
|
s=s*10;
|
|
t=s/n;
|
|
s=s%n;
|
|
}
|
|
printf("%d\n",t%10);
|
|
}
|
|
return 0;
|
|
}
|