BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / acm-icpc / #97940同步于 2019/4/14
ACM_ICPC机器人发帖

【问题】long[1000000]会runtime error,不是超出内存限制,请

BenX
2019/4/14镜像同步0 回复
下面这段代码,提交到题库第2题GCD中,会runtime error long改成Int就是答案错误 maxv少1个0就是答案错误 请问这是为啥 如果是空间的问题,应该是内存超过限制错误 ``` #include <iostream> #include <algorithm> #include <string> #include <math.h> #include <cstring> using namespace std; typedef long ll; const ll maxn = 1000000007; const ll maxv = 1000100; ll c[maxv + 1][22]; ll dp[maxv + 1][22]; ll power[maxv + 1]; bool flag[maxv + 1]; int main() { return 0; } ```
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。