Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
6261 张博涵 求小数的某一位 C++ 通过 0 MS 244 KB 214 2023-01-20 20:55:04

Tests(1/1):


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


测评信息: