1 solutions

  • 0
    @ 2025-7-11 10:37:18
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n,m=1;
    	cin>>n;
    	for(int i=1;i<=n;i++){
    		int x;
    		cin>>x;
    		while(x){
    		int ge=x%10;
    		m*=ge;
    		x/=10;
    		}
    		cout<<m<<endl;
    		m=1;
    	}
    	return 0;
    }
    
    
    
    • 1

    Information

    ID
    2841
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    9
    Tags
    # Submissions
    10
    Accepted
    6
    Uploaded By