Wrong Answer

/in/foo.cc: In function 'void res()':
/in/foo.cc:13:56: warning: iteration 1000004 invokes undefined behavior [-Waggressive-loop-optimizations]
   13 |                         if (dp[j]*dp[k]%1000000000>dp[i])dp[i]=max(dp[i],dp[j]*dp[k]%1000000000);
      |                                                    ~~~~^
/in/foo.cc:8:23: note: within this loop
    8 |         for (int i=1;i<=N;i++)
      |                      ~^~~
# 状态 耗时 内存占用
#1 Accepted 20ms 8.016 MiB
#2 Accepted 20ms 8.125 MiB
#3 Accepted 20ms 8.039 MiB
#4 Accepted 20ms 8.082 MiB
#5 Accepted 21ms 8.117 MiB
#6 Accepted 20ms 8.074 MiB
#7 Wrong Answer 20ms 8.016 MiB
#8 Accepted 20ms 8.094 MiB
#9 Accepted 20ms 8.137 MiB
#10 Accepted 20ms 8.141 MiB

信息

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