记录详情

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 ≥325ms ≥159.984 MiB
#2 Time Exceeded ≥305ms ≥159.516 MiB
#3 Memory Exceeded ≥422ms ≥160.0 MiB
#4 Memory Exceeded ≥378ms ≥160.0 MiB
#5 Memory Exceeded ≥417ms ≥160.0 MiB
#6 Memory Exceeded ≥300ms ≥160.0 MiB
#7 Memory Exceeded ≥412ms ≥160.0 MiB
#8 Time Exceeded ≥414ms ≥159.859 MiB
#9 Memory Exceeded ≥333ms ≥160.0 MiB
#10 Memory Exceeded ≥307ms ≥160.0 MiB
#11 Memory Exceeded ≥322ms ≥160.0 MiB
#12 Memory Exceeded ≥319ms ≥160.0 MiB
#13 Memory Exceeded ≥315ms ≥160.0 MiB
#14 Memory Exceeded ≥321ms ≥160.0 MiB

信息

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