Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
7714 zhaoziwen 求小数的某一位 C++ 通过 0 MS 248 KB 256 2023-02-06 18:39:19

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; }


测评信息: