/ 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 99998 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 5ms 1.008 MiB
#2 Accepted 5ms 1.086 MiB
#3 Accepted 6ms 1.0 MiB
#4 Wrong Answer 5ms 1.0 MiB
#5 Wrong Answer 3ms 1.0 MiB
#6 Wrong Answer 5ms 1.074 MiB
#7 Wrong Answer 5ms 1.0 MiB
#8 Wrong Answer 16ms 1.0 MiB
#9 Time Exceeded ≥1007ms ≥1.105 MiB
#10 Time Exceeded ≥1006ms ≥1.086 MiB

信息

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