记录详情

Accepted

/in/foo.cc: In function 'void getmu()':
/in/foo.cc:26:25: warning: iteration 50004 invokes undefined behavior [-Waggressive-loop-optimizations]
     sum[i]=sum[i-1]+mu[i];
                     ~~~~^
/in/foo.cc:25:18: note: within this loop
     for(int i=1;i<=MAXN;i++)
                  ^
/in/foo.cc:17:18: warning: iteration 50003 invokes undefined behavior [-Waggressive-loop-optimizations]
         if(!jud[i])pri[++cnt]=i,mu[i]=-1;
             ~~~~~^
/in/foo.cc:15:18: note: within this loop
     for(int i=2;i<=MAXN;i++)
                  ^
# 状态 耗时 内存占用
#1 Accepted 23ms 868.0 KiB
#2 Accepted 11ms 732.0 KiB
#3 Accepted 39ms 772.0 KiB
#4 Accepted 13ms 896.0 KiB
#5 Accepted 20ms 768.0 KiB
#6 Accepted 26ms 712.0 KiB
#7 Accepted 29ms 696.0 KiB
#8 Accepted 17ms 896.0 KiB
#9 Accepted 15ms 856.0 KiB
#10 Accepted 8ms 880.0 KiB

信息

递交者
类型
递交
题目
[HAOI2011]Problem b
语言
C++
递交时间
2017-05-06 19:39:24
评测时间
2017-05-06 19:39:24
评测机
分数
100
总耗时
204ms
峰值内存
896.0 KiB