记录详情

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 ≥303ms ≥135.625 MiB
#2 Time Exceeded ≥368ms ≥95.0 MiB
#3 Time Exceeded ≥352ms ≥105.992 MiB
#4 Time Exceeded ≥356ms ≥112.5 MiB
#5 Time Exceeded ≥357ms ≥95.75 MiB
#6 Time Exceeded ≥346ms ≥87.605 MiB
#7 Time Exceeded ≥361ms ≥159.625 MiB
#8 Time Exceeded ≥350ms ≥107.867 MiB
#9 Memory Exceeded ≥301ms ≥160.0 MiB
#10 Time Exceeded ≥300ms ≥159.762 MiB
#11 Memory Exceeded ≥300ms ≥160.0 MiB
#12 Time Exceeded ≥361ms ≥159.93 MiB
#13 Time Exceeded ≥300ms ≥158.477 MiB
#14 Time Exceeded ≥300ms ≥158.375 MiB

信息

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