Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:19:28: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   19 |                 if(prime(i)&&prime(i+1)||prime(i)&&prime(i+2))
      |                    ~~~~~~~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer Read 2, expect 3. 3ms 536.0 KiB
#2 Accepted 2ms 536.0 KiB
#3 Accepted 2ms 536.0 KiB
#4 Wrong Answer Read 35, expect 36. 2ms 324.0 KiB
#5 Wrong Answer Read 61, expect 62. 2ms 536.0 KiB
#6 Wrong Answer Read 3, expect 4. 2ms 324.0 KiB
#7 Wrong Answer Read 205, expect 206. 4ms 552.0 KiB
#8 Wrong Answer Read 591, expect 592. 14ms 536.0 KiB
#9 Wrong Answer Read 4565, expect 4566. 273ms 540.0 KiB
#10 Wrong Answer Read 8169, expect 8170. 563ms 536.0 KiB

信息

递交者
类型
递交
题目
P1789 孪生素数
语言
C++
递交时间
2024-07-15 11:04:23
评测时间
2024-07-15 11:04:23
评测机
分数
20
总耗时
873ms
峰值内存
552.0 KiB