记录详情

Wrong Answer

/in/foo.cc: In function 'void initial()':
/in/foo.cc:27:50: warning: iteration 5999999 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(int i=1;i<=N;i++)sum[i]=sum[i-1]+mobius[i];
                                          ~~~~~~~~^
/in/foo.cc:27:18: note: within this loop
     for(int i=1;i<=N;i++)sum[i]=sum[i-1]+mobius[i];
                 ~^~~
/in/foo.cc:19:19: warning: iteration 5999998 invokes undefined behavior [-Waggressive-loop-optimizations]
         if(!book[i]){prime[++cnt]=i;mobius[i]=-1;}
             ~~~~~~^
/in/foo.cc:17:18: note: within this loop
     for(int i=2;i<=N;i++)
                 ~^~~
# 状态 耗时 内存占用
#1 Accepted 153ms 54.625 MiB
#2 Accepted 173ms 54.684 MiB
#3 Accepted 155ms 56.625 MiB
#4 Accepted 155ms 56.625 MiB
#5 Accepted 153ms 56.723 MiB
#6 Wrong Answer 188ms 56.684 MiB
#7 Wrong Answer 164ms 54.75 MiB
#8 Accepted 133ms 54.664 MiB
#9 Wrong Answer 121ms 54.625 MiB
#10 Accepted 148ms 56.723 MiB
#11 Accepted 129ms 56.719 MiB
#12 Accepted 146ms 56.625 MiB
#13 Accepted 129ms 56.727 MiB
#14 Accepted 132ms 56.738 MiB

信息

递交者
类型
递交
语言
C++
递交时间
2018-05-12 18:28:19
评测时间
2018-05-12 18:28:19
评测机
分数
79
总耗时
2088ms
峰值内存
56.738 MiB