- 【例32.3】 数位积
h
- 2025-1-14 15:59:13 @
#include<bits/stdc++.h>
using namespace std;
int t,n,s;
int main(){
cin>>t;
while(t--){
cin>>n;
s=1;
while(n){
s*=n%10;
n/=10;
}
cout<<s<<"\n";
}
return 0;
}
0 comments
No comments so far...
Information
- ID
- 106
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- # Submissions
- 191
- Accepted
- 64
- Uploaded By