Wrong Answer

/in/foo.cc: In function 'void res()':
/in/foo.cc:13:82: warning: iteration 1000004 invokes undefined behavior [-Waggressive-loop-optimizations]
   13 |                         if ((dp[j]%1000000000)*(dp[k]%1000000000)%1000000000>dp[i])dp[i]=max(dp[i],(dp[j]%1000000000)*(dp[k]%1000000000)%1000000000);
      |                                                                              ~~~~^
/in/foo.cc:8:23: note: within this loop
    8 |         for (int i=1;i<=N;i++)
      |                      ~^~~
# 状态 耗时 内存占用
#1 Accepted 25ms 7.965 MiB
#2 Accepted 25ms 8.047 MiB
#3 Accepted 26ms 8.129 MiB
#4 Accepted 25ms 8.133 MiB
#5 Accepted 26ms 8.145 MiB
#6 Accepted 26ms 7.934 MiB
#7 Wrong Answer 26ms 8.125 MiB
#8 Accepted 26ms 8.117 MiB
#9 Accepted 26ms 7.93 MiB
#10 Accepted 25ms 8.066 MiB

信息

递交者
类型
递交
题目
P3059 拆分 GESP202603 七级T1
语言
C++
递交时间
2026-05-31 22:50:40
评测时间
2026-05-31 22:50:40
评测机
分数
90
总耗时
260ms
峰值内存
8.145 MiB