记录详情

Wrong Answer

/in/foo.cc: In function 'void initial()':
/in/foo.cc:20:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j=1;j<=cnt&&prime[j]*i<=N;j++)
                     ~^~~~~
/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 159ms 56.75 MiB
#2 Accepted 154ms 54.625 MiB
#3 Accepted 151ms 56.719 MiB
#4 Accepted 183ms 54.809 MiB
#5 Accepted 156ms 54.824 MiB
#6 Accepted 146ms 54.625 MiB
#7 Wrong Answer 174ms 56.625 MiB
#8 Wrong Answer 143ms 54.629 MiB
#9 Wrong Answer 138ms 56.73 MiB
#10 Wrong Answer 175ms 56.625 MiB
#11 Wrong Answer 152ms 54.625 MiB
#12 Wrong Answer 163ms 56.727 MiB
#13 Accepted 146ms 56.711 MiB
#14 Accepted 161ms 56.711 MiB

信息

递交者
类型
递交
语言
C++
递交时间
2018-05-12 18:48:43
评测时间
2018-05-12 18:48:43
评测机
分数
58
总耗时
2207ms
峰值内存
56.75 MiB