记录详情

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 142ms 56.625 MiB
#2 Accepted 178ms 56.75 MiB
#3 Accepted 157ms 54.719 MiB
#4 Accepted 159ms 54.699 MiB
#5 Accepted 160ms 56.625 MiB
#6 Accepted 144ms 54.625 MiB
#7 Wrong Answer 161ms 54.574 MiB
#8 Wrong Answer 158ms 54.707 MiB
#9 Wrong Answer 154ms 54.625 MiB
#10 Wrong Answer 166ms 56.625 MiB
#11 Wrong Answer 122ms 54.75 MiB
#12 Wrong Answer 127ms 54.711 MiB
#13 Accepted 128ms 56.727 MiB
#14 Accepted 190ms 56.75 MiB

信息

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