记录详情

Memory Exceeded

/in/foo.cc: In function 'void initial()':
/in/foo.cc:21: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:28:50: warning: iteration 59999999 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(int i=1;i<=N;i++)sum[i]=sum[i-1]+mobius[i];
                                          ~~~~~~~~^
/in/foo.cc:28:18: note: within this loop
     for(int i=1;i<=N;i++)sum[i]=sum[i-1]+mobius[i];
                 ~^~~
/in/foo.cc:20:19: warning: iteration 59999998 invokes undefined behavior [-Waggressive-loop-optimizations]
         if(!book[i]){prime[++cnt]=i;mobius[i]=-1;}
             ~~~~~~^
/in/foo.cc:18:18: note: within this loop
     for(int i=2;i<=N;i++)
                 ~^~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥308ms ≥159.543 MiB
#2 Time Exceeded ≥300ms ≥159.902 MiB
#3 Memory Exceeded ≥333ms ≥160.0 MiB
#4 Memory Exceeded ≥344ms ≥160.0 MiB
#5 Memory Exceeded ≥339ms ≥160.0 MiB
#6 Time Exceeded ≥311ms ≥159.332 MiB
#7 Memory Exceeded ≥338ms ≥160.0 MiB
#8 Memory Exceeded ≥328ms ≥160.0 MiB
#9 Memory Exceeded ≥306ms ≥160.0 MiB
#10 Memory Exceeded ≥332ms ≥160.0 MiB
#11 Memory Exceeded ≥313ms ≥160.0 MiB
#12 Memory Exceeded ≥339ms ≥160.0 MiB
#13 Memory Exceeded ≥339ms ≥160.0 MiB
#14 Memory Exceeded ≥339ms ≥160.0 MiB

信息

递交者
类型
递交
语言
C++
递交时间
2018-05-12 18:42:45
评测时间
2018-05-12 18:42:45
评测机
分数
0
总耗时
≥4576ms
峰值内存
≥160.0 MiB