记录详情

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 156ms 54.719 MiB
#2 Accepted 205ms 54.625 MiB
#3 Accepted 164ms 54.75 MiB
#4 Accepted 153ms 54.625 MiB
#5 Accepted 156ms 56.738 MiB
#6 Accepted 180ms 56.625 MiB
#7 Wrong Answer 141ms 54.625 MiB
#8 Wrong Answer 153ms 54.625 MiB
#9 Wrong Answer 120ms 54.625 MiB
#10 Wrong Answer 129ms 54.699 MiB
#11 Wrong Answer 156ms 54.625 MiB
#12 Wrong Answer 181ms 54.625 MiB
#13 Accepted 143ms 56.742 MiB
#14 Accepted 129ms 54.738 MiB

信息

递交者
类型
递交
语言
C++
递交时间
2018-05-12 18:47:17
评测时间
2018-05-12 18:47:17
评测机
分数
58
总耗时
2173ms
峰值内存
56.742 MiB