Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:30:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
      if(!pr[i])
      ^~
/in/foo.cc:32:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   for(int j=0;j<cnt&&prime[j]*i<=n;j++)
   ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 364.0 KiB
#2 Accepted 109ms 12.438 MiB
#3 Accepted 1ms 364.0 KiB
#4 Accepted 1ms 400.0 KiB
#5 Accepted 1ms 376.0 KiB
#6 Accepted 1ms 364.0 KiB
#7 Time Exceeded ≥1000ms ≥936.0 KiB
#8 Accepted 232ms 532.0 KiB
#9 Time Exceeded ≥1000ms ≥8.352 MiB
#10 Accepted 102ms 11.973 MiB

信息

递交者
类型
递交
题目
P1603 素数之和(prim)
语言
C++
递交时间
2024-05-15 23:13:29
评测时间
2024-05-15 23:13:29
评测机
分数
80
总耗时
≥2455ms
峰值内存
≥12.438 MiB