Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:32:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if(!pr[i])
       ^~
/in/foo.cc:34:4: 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/2;j++)
    ^~~
/in/foo.cc:45:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if(!pr[i])
       ^~
/in/foo.cc:47:4: 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 Wrong Answer 56ms 6.547 MiB
#3 Accepted 1ms 356.0 KiB
#4 Accepted 1ms 400.0 KiB
#5 Accepted 1ms 376.0 KiB
#6 Accepted 1ms 376.0 KiB
#7 Time Exceeded ≥1005ms ≥872.0 KiB
#8 Accepted 244ms 528.0 KiB
#9 Wrong Answer 37ms 4.441 MiB
#10 Wrong Answer 54ms 6.25 MiB

信息

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