Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
7685 鲁家菱 求小数的某一位 C++ 通过 0 MS 248 KB 188 2023-02-06 15:21:29

Tests(1/1):


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


测评信息: