/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (i==x&&j==y||i==x-1&&j==y-2||i==x+1&&j==y-2||i==x-1&&j==y+2||i==x+1&&j==y+2
          ~~~~^~~~~~
/in/foo.cc:13:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (i==x&&j==y||i==x-1&&j==y-2||i==x+1&&j==y-2||i==x-1&&j==y+2||i==x+1&&j==y+2
                                      ~~~~~~^~~~~~~~
/in/foo.cc:13:60: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (i==x&&j==y||i==x-1&&j==y-2||i==x+1&&j==y-2||i==x-1&&j==y+2||i==x+1&&j==y+2
                                                      ~~~~~~^~~~~~~~
/in/foo.cc:13:76: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (i==x&&j==y||i==x-1&&j==y-2||i==x+1&&j==y-2||i==x-1&&j==y+2||i==x+1&&j==y+2
                                                                      ~~~~~~^~~~~~~~
/in/foo.cc:14:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-2&&j==y+1||i==x+2&&j==y+1||i==x+2&&j==y-1||i==x-2&&j==y-1)
        ~~~~~~^~~~~~~~
/in/foo.cc:14:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-2&&j==y+1||i==x+2&&j==y+1||i==x+2&&j==y-1||i==x-2&&j==y-1)
                        ~~~~~~^~~~~~~~
/in/foo.cc:14:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-2&&j==y+1||i==x+2&&j==y+1||i==x+2&&j==y-1||i==x-2&&j==y-1)
                                        ~~~~~~^~~~~~~~
/in/foo.cc:14:62: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-2&&j==y+1||i==x+2&&j==y+1||i==x+2&&j==y-1||i==x-2&&j==y-1)
                                                        ~~~~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 204.0 KiB
#2 Accepted 1ms 228.0 KiB
#3 Wrong Answer 1ms 220.0 KiB
#4 Accepted 1ms 228.0 KiB
#5 Accepted 1ms 220.0 KiB
#6 Accepted 1ms 232.0 KiB
#7 Accepted 1ms 216.0 KiB
#8 Accepted 1ms 224.0 KiB
#9 Accepted 1ms 220.0 KiB
#10 Accepted 1ms 232.0 KiB

信息

递交者
类型
递交
题目
P1121 马拦过河卒
语言
C++
递交时间
2020-11-03 22:16:45
评测时间
2020-11-03 22:16:45
评测机
分数
90
总耗时
13ms
峰值内存
232.0 KiB