Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
8674 D班-西瓜 阿尔法乘积 C++ 通过 100 1 MS 260 KB 304 2025-04-03 15:29:27

Tests(10/10):


#include <bits/stdc++.h> using namespace std; int main() { int n,sum; cin >> n; sum = n; while(1) { int temp = sum; sum = 1; while(temp) { if(temp%10!=0) { sum *= temp%10; } temp /= 10; } if(sum>=0&&sum<=9) { break; } } cout << sum; return 0; }


测评信息: