题目点这
代码:
#include<bits/stdc++.h> using namespace std; int a,b,n,x; int main(){ scanf("%d%d%d",&a,&b,&n); while(n--){ a*=10; x=a/b; a%=b; } cout<<x; return 0; }
90分,不知道为什么有错