提交时间:2020-10-31 19:49:55

运行 ID: 8372

#include<bits/stdc++.h> using namespace std; int main(){ long double a,b,sum; long long ss; int n; cin>>a>>b>>sum; sum=a/b; for(int i=1;i<=n;i++) sum*=10; ss=(int)sum; ss%=10; cout<<ss; }