Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:20:28: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   20 |                 if(prime(i)&&prime(i+1)||prime(i)&&prime(i+2))
      |                    ~~~~~~~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 536.0 KiB
#2 Accepted 2ms 320.0 KiB
#3 Wrong Answer Read 2, expect 1. 2ms 324.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 536.0 KiB
#6 Accepted 3ms 536.0 KiB
#7 Accepted 4ms 324.0 KiB
#8 Accepted 14ms 544.0 KiB
#9 Accepted 249ms 532.0 KiB
#10 Accepted 537ms 540.0 KiB

信息

递交者
类型
递交
题目
P1789 孪生素数
语言
C++
递交时间
2024-07-15 11:02:35
评测时间
2024-07-15 11:02:35
评测机
分数
90
总耗时
823ms
峰值内存
544.0 KiB