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 49ms 21.773 MiB
#2 Accepted 50ms 21.734 MiB
#3 Accepted 48ms 21.727 MiB
#4 Accepted 49ms 21.738 MiB
#5 Accepted 47ms 21.691 MiB
#6 Accepted 49ms 21.719 MiB
#7 Accepted 45ms 21.738 MiB
#8 Accepted 49ms 21.781 MiB
#9 Accepted 45ms 21.777 MiB
#10 Accepted 50ms 21.582 MiB

信息

递交者
类型
递交
题目
P3123 准素数
语言
C++
递交时间
2026-06-01 15:05:36
评测时间
2026-06-01 15:05:36
评测机
分数
100
总耗时
485ms
峰值内存
21.781 MiB