题目:Atcoder Educational DP Contest
I - Coinshttps://atcoder.jp/contests/dp
报错信息:
C:\Users\ZN\AppData\Local\Temp\ccojEWHd.s Assembler messages:
226 C:\Users\ZN\AppData\Local\Temp\ccojEWHd.s Error: value of 00000012a0f19ffd too large for field of 4 bytes at 0000000000000295
250 C:\Users\ZN\AppData\Local\Temp\ccojEWHd.s Error: value of 00000012a0f1a02d too large for field of 4 bytes at 00000000000002c5
代码:
```c++
#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5;
int n ;
long long a[N],s[N],f[N][N] ;
int main()
{
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>a[i];
s[i]=s[i-1]+a[i];
}
for(int len=2;len<=n;len++)
{
for(int i=1;i<=n-len+1;i++)
{
int j=i+len-1;
f[i][j]=1e9;
for(int k=i;k<j;k++)
f[i][j]=min(f[i][j],f[i][k]+f[k+1][j]+s[j]-s[i-1]);
}
}
cout<<f[1][n]<<endl;
return 0;
}
/*
Assembler messages:
Error: value of 00000012a0f19ffd too large for field of 4 bytes at 0000000000000295
Error: value of 00000012a0f1a02d too large for field of 4 bytes at 00000000000002c5
*/
谁能帮我看看是哪儿出问题了?谢谢!