2 solutions

  • 0
    @ 2025-12-3 21:02:23
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	long long n,a,c=1;
    	cin>>n;
    	for(int i=1;i<=n;i++)
    	{
    		cin>>a;
    		c*=a;
    	}
    	if(c>1000000)
    	{
    		cout<<">"<<1000000;
    	}
    	else
    	{ 
    		cout<<c;
    	}
    	return 0;
    }
    

    Information

    ID
    2163
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    50
    Accepted
    21
    Uploaded By