@[mating18132617141](/user/1250813)
100^50炸longlong了,中间直接结束就行
```cpp
#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;
break;
}else
{
ans *= y;
}
}
if(ans == -1 || ans > (long long)1e6) printf(">1000000");
else print(ans);
}
#undef wrap
#undef print
```
by Luka__Modric @ 2024-04-25 22:14:06
如果你觉得有帮助请关注@rnfmabj5114谢谢喵
by Luka__Modric @ 2024-04-25 22:14:28
@[rnfmabj5114](/user/917683)
by Luka__Modric @ 2024-04-25 22:14:36
@[Luka__Modric](/user/839893) 哇是rnf学长,捉
by _fox_ @ 2024-05-10 20:15:49
@[_fox_](/user/760712) ?
by Luka__Modric @ 2024-05-10 20:17:47