Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78597 sh25_chenyj 最大公约数和最小公倍数问题 C++ 解答错误 0 MS 244 KB 312 2025-12-26 22:39:40

Tests(0/5):


#include<bits/stdc++.h> using namespace std; int numb(int a, int b, int n) { double m = a*1.0/b; for(int i = 0; i < n; i++){ m *= 10; } int c = m; return c % 10; } int main() { int a, b, n; cin>>a>>b>>n; // cout << fixed << setprecision(10) << ce(a); cout<<numb(a, b, n); return 0; }


测评信息: