- 【例32.3】 数位积
q
- 2025-1-14 16:02:24 @
#include<bits/stdc++.h>
using namespace std;
int main() {
int a,n,a1=1,s;
cin>>n;
while(n--){
cin>>s;
while(s){
a=s%10;
s/=10;
a1*=a;
}
cout<<a1<<endl;
a=0;
a1=1;
}
return 0;
}
0 comments
No comments so far...
Information
- ID
- 106
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- # Submissions
- 183
- Accepted
- 61
- Uploaded By