/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:27:8: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   mid=l+r>>1;
       ~^~
/in/foo.cc: In function 'void get_mu()':
/in/foo.cc:9:18: warning: iteration 999998 invokes undefined behavior [-Waggressive-loop-optimizations]
   if(!not_prime[i]) prime[++t]=i,mu[i]=-1;
       ~~~~~~~~~~~^
/in/foo.cc:8:15: note: within this loop
  for(int i=2;i<=N;i++) {
              ~^~~
# 状态 耗时 内存占用
#1 Accepted 21ms 8.625 MiB
#2 Accepted 20ms 8.625 MiB
#3 Accepted 20ms 8.625 MiB
#4 Wrong Answer 21ms 8.625 MiB
#5 Wrong Answer 23ms 8.625 MiB
#6 Wrong Answer 21ms 8.625 MiB
#7 Wrong Answer 19ms 8.625 MiB
#8 Wrong Answer 24ms 8.719 MiB
#9 Time Exceeded ≥1005ms ≥8.711 MiB
#10 Time Exceeded ≥1004ms ≥8.699 MiB

信息

递交者
类型
递交
题目
P1889 天真的因数分解
语言
C++
递交时间
2017-08-08 16:13:09
评测时间
2017-08-08 16:13:09
评测机
分数
30
总耗时
≥2183ms
峰值内存
≥8.719 MiB