记录详情

Runtime Error

foo.cc: In function 'void tree_dp(long long int, long long int)':
foo.cc:51:26: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
             ans+=dp[to][j]*dp[from][((-j-val)%7+7)%7]*6;
                  ~~~~~~~~^
foo.cc:11:42: note: within this loop
 #define rep(i,s,e) for(register int i=s;i<=e;++i)
foo.cc:50:13:
         rep(j,0,6)
             ~~~~~                         
foo.cc:50:9: note: in expansion of macro 'rep'
         rep(j,0,6)
         ^~~
foo.cc:53:42: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
             dp[from][(j+val)%7]+=dp[to][j];
                                  ~~~~~~~~^
foo.cc:11:42: note: within this loop
 #define rep(i,s,e) for(register int i=s;i<=e;++i)
foo.cc:52:13:
         rep(j,0,6)
             ~~~~~                         
foo.cc:52:9: note: in expansion of macro 'rep'
         rep(j,0,6)
         ^~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-08-07T05:40:23.003Z","handle":"2020-08-07T05:40:23.003Z","cache_start":"2020-08-07T05:40:23.009Z","read_cases":"2020-08-07T05:40:23.136Z","judge":"2020-08-07T05:40:23.136Z","done":"2020-08-07T05:40:24.023Z"}
# 状态 耗时 内存占用
#1 Wrong Answer 读取到 862016149123096218 ,应为 697 1ms 732.0 KiB
#2 Wrong Answer 读取到 4012645499175584448 ,应为 733 1ms 592.0 KiB
#3 Wrong Answer 读取到 134326323002464752 ,应为 672 1ms 256.0 KiB
#4 Wrong Answer 读取到 1339123369421199636 ,应为 1786335 2ms 844.0 KiB
#5 Wrong Answer 读取到 -8548057461254213152 ,应为 1784136 2ms 840.0 KiB
#6 Wrong Answer 读取到 -73735662937242202 ,应为 1785158 2ms 924.0 KiB
#7 Runtime Error Segmentation fault 3ms 1.773 MiB
#8 Runtime Error Segmentation fault 3ms 1.773 MiB
#9 Runtime Error Segmentation fault 3ms 1.715 MiB
#10 Runtime Error Segmentation fault 3ms 1.625 MiB

信息

递交者
类型
递交
题目
P1021 幸运七
语言
C++
递交时间
2020-08-07 13:40:22
评测时间
2020-08-07 13:40:22
评测机
分数
0
总耗时
24ms
峰值内存
1.773 MiB