题解
2023-08-15 22:14:19
发布于:广东
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
long long a,b,n;
int main()
{
freopen("decimal.in","r",stdin);
freopen("decimal.out","w",stdout);
scanf("%lld%lld%lld",&a,&b,&n);
for (long long i = 1; i <= n; i++) a %= b,a *= 10;
a /= b;
printf("%lld",a);
fclose(stdin);
fclose(stdout);
return 0;
}
最!后!提!醒!一!遍!:十年OI一场空,没freopen
见祖宗!
这里空空如也
有帮助,赞一个