Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:28:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   28 |                 if(j!=v[i]&&v[j]==j || 1LL*v[i]*v[i]*v[i]==i)n--;
      |                    ~~~~~~~^~~~~~~~~
/in/foo.cc: In function 'void init()':
/in/foo.cc:9:23: warning: iteration 5200003 invokes undefined behavior [-Waggressive-loop-optimizations]
    9 |                 if(v[i]==0)
      |                    ~~~^
/in/foo.cc:7:22: note: within this loop
    7 |         for(int i=2;i<=M;i++)
      |                     ~^~~
# 状态 耗时 内存占用
#1 Accepted 48ms 21.746 MiB
#2 Accepted 48ms 21.703 MiB
#3 Accepted 47ms 21.719 MiB
#4 Accepted 48ms 21.66 MiB
#5 Accepted 46ms 21.711 MiB
#6 Accepted 48ms 21.691 MiB
#7 Accepted 42ms 21.73 MiB
#8 Accepted 48ms 21.777 MiB
#9 Accepted 43ms 21.727 MiB
#10 Accepted 47ms 21.707 MiB

信息

递交者
类型
递交
题目
P3123 准素数
语言
C++
递交时间
2026-06-01 14:57:08
评测时间
2026-06-01 14:57:08
评测机
分数
100
总耗时
472ms
峰值内存
21.777 MiB