96分,求助
查看原帖
96分,求助
1250813
zet365楼主2024/4/25 22:09
#include <bits/stdc++.h>
using namespace std;
#define wrap() printf("\n")
#define print(x) printf("%lld",x);
typedef long long int ll;
typedef int inter;
typedef unsigned int ui;
typedef unsigned long long ull;
typedef unsigned __int128 uint128;	
const int E = 1e6+10;
const int S = 1e7+10;
const int U = 1<<30;
const int T = 1e4*2+10;
const int F = 65540;//F = 65535 + 5
const int Q = 1010;
const long long Y = 1LL<<60LL;	
const int maxp = 1e5 + 10;

int x;
long long ans=1;

int main()
{
	cin >> x;
	for(;x--;)
	{
		long long y;
		cin >> y;
		if(ans > (long long)1e6) 
		{
			ans = -1;
		}else
		{
			ans *= y;
		}
	}
	if(ans == -1 || ans > (long long)1e6) printf(">1000000");
	else print(ans);
}
#undef wrap
#undef print

2024/4/25 22:09
加载中...