Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
71049 sh25_wangsj 求小数的某一位 C++ 通过 0 MS 244 KB 251 2025-10-24 14:31:34

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,e,f=1,g; cin>>a>>b>>c; float d; d=a*1.0/b; for(int i=1;i<=c;i=i+1){ f=f*10; e=d*f; g=e-e%1; } cout<<g; return 0; }


测评信息: