/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (i==x&&0==y
       ~~~~^~~~~~
/in/foo.cc:9:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-1&&0==y-2||i==x+1&&0==y-2||i==x-1&&0==y+2||i==x+1&&0==y+2
                        ~~~~~~^~~~~~~~
/in/foo.cc:9:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-1&&0==y-2||i==x+1&&0==y-2||i==x-1&&0==y+2||i==x+1&&0==y+2
                                        ~~~~~~^~~~~~~~
/in/foo.cc:9:62: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-1&&0==y-2||i==x+1&&0==y-2||i==x-1&&0==y+2||i==x+1&&0==y+2
                                                        ~~~~~~^~~~~~~~
/in/foo.cc:10:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-2&&0==y+1||i==x+2&&0==y+1||i==x+2&&0==y-1||i==x-2&&0==y-1)
        ~~~~~~^~~~~~~~
/in/foo.cc:10:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-2&&0==y+1||i==x+2&&0==y+1||i==x+2&&0==y-1||i==x-2&&0==y-1)
                        ~~~~~~^~~~~~~~
/in/foo.cc:10:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-2&&0==y+1||i==x+2&&0==y+1||i==x+2&&0==y-1||i==x-2&&0==y-1)
                                        ~~~~~~^~~~~~~~
/in/foo.cc:10:62: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||i==x-2&&0==y+1||i==x+2&&0==y+1||i==x+2&&0==y-1||i==x-2&&0==y-1)
                                                        ~~~~~~^~~~~~~~
/in/foo.cc:15:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (0==x&&j==y
       ~~~~^~~~~~
/in/foo.cc:16:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||0==x-1&&j==y-2||0==x+1&&j==y-2||0==x-1&&j==y+2||0==x+1&&j==y+2
                        ~~~~~~^~~~~~~~
/in/foo.cc:16:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||0==x-1&&j==y-2||0==x+1&&j==y-2||0==x-1&&j==y+2||0==x+1&&j==y+2
                                        ~~~~~~^~~~~~~~
/in/foo.cc:16:62: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||0==x-1&&j==y-2||0==x+1&&j==y-2||0==x-1&&j==y+2||0==x+1&&j==y+2
                                                        ~~~~~~^~~~~~~~
/in/foo.cc:17:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||0==x-2&&j==y+1||0==x+2&&j==y+1||0==x+2&&j==y-1||0==x-2&&j==y-1)
        ~~~~~~^~~~~~~~
/in/foo.cc:17:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||0==x-2&&j==y+1||0==x+2&&j==y+1||0==x+2&&j==y-1||0==x-2&&j==y-1)
                        ~~~~~~^~~~~~~~
/in/foo.cc:17:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||0==x-2&&j==y+1||0==x+2&&j==y+1||0==x+2&&j==y-1||0==x-2&&j==y-1)
                                        ~~~~~~^~~~~~~~
/in/foo.cc:17:62: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||0==x-2&&j==y+1||0==x+2&&j==y+1||0==x+2&&j==y-1||0==x-2&&j==y-1)
                                                        ~~~~~~^~~~~~~~
/in/foo.cc:23:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (i==x&&j==y
          ~~~~^~~~~~
/in/foo.cc:24:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||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:24:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||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:24:62: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      ||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:25: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:25: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:25: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:25: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 220.0 KiB
#2 Accepted 1ms 228.0 KiB
#3 Wrong Answer 1ms 216.0 KiB
#4 Accepted 1ms 232.0 KiB
#5 Accepted 1ms 220.0 KiB
#6 Accepted 1ms 228.0 KiB
#7 Accepted 1ms 220.0 KiB
#8 Accepted 1ms 228.0 KiB
#9 Accepted 1ms 216.0 KiB
#10 Accepted 1ms 228.0 KiB

信息

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