提交时间:2025-04-08 19:56:58
运行 ID: 9179
#include<bits/stdc++.h> using namespace std; int n,b=1,i; int main(){ cin>>n; while(n>=10){ i=n; b=1; while(i>0){ if(i!=0){ b*=i%10; } i/=10; } n=b; } cout<<n; return 0; }