/ Vijos /

记录详情

Accepted

foo.cc: In function 'void init_primes()':
foo.cc:10:17: warning: iteration 200001 invokes undefined behavior [-Waggressive-loop-optimizations]
   10 |         if(!st[i])primes[idx++]=i;
      |             ~~~~^
foo.cc:8:18: note: within this loop
    8 |     for(int i=2;i<=N;i++)
      |                 ~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 10ms 760.0 KiB
#2 Accepted 9ms 644.0 KiB
#3 Accepted 7ms 640.0 KiB
#4 Accepted 8ms 640.0 KiB
#5 Accepted 4ms 640.0 KiB
#6 Accepted 5ms 640.0 KiB
#7 Accepted 5ms 768.0 KiB
#8 Accepted 4ms 640.0 KiB
#9 Accepted 6ms 660.0 KiB
#10 Accepted 6ms 660.0 KiB

信息

递交者
类型
递交
题目
P1786 质因数分解
语言
C++
递交时间
2022-04-01 18:53:56
评测时间
2022-04-01 18:53:56
评测机
分数
100
总耗时
69ms
峰值内存
768.0 KiB