Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:17:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(isprime(i)&&isprime(i+1) || isprime(i)&&isprime(i+2) || isprime(i)&&isprime(i+3))
      ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:17:72: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(isprime(i)&&isprime(i+1) || isprime(i)&&isprime(i+2) || isprime(i)&&isprime(i+3))
                                                              ~~~~~~~~~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 376.0 KiB
#2 Wrong Answer 1ms 376.0 KiB
#3 Accepted 1ms 340.0 KiB
#4 Accepted 1ms 352.0 KiB
#5 Accepted 1ms 336.0 KiB
#6 Accepted 1ms 348.0 KiB
#7 Accepted 2ms 416.0 KiB
#8 Accepted 8ms 420.0 KiB
#9 Accepted 217ms 416.0 KiB
#10 Accepted 561ms 412.0 KiB

信息

递交者
类型
递交
题目
P1789 孪生素数
语言
C++
递交时间
2024-07-31 20:06:03
评测时间
2024-07-31 20:06:03
评测机
分数
80
总耗时
801ms
峰值内存
420.0 KiB