/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool li(long int, long int)':
/in/foo.cc:8:12: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if(j==x&&k==y||j==0&&k==0) return 1;
        ~~~~^~~~~~
/in/foo.cc:2:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 #define L(j,k,x,y) (j==x+1||j==x-1)&&(k==y+2||k==y-2)
                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:9:8: note: in expansion of macro 'L'
     if(L(j,k,x,y)||L(k,j,y,x)) return 1;
        ^
# 状态 耗时 内存占用
#1 Accepted 3ms 352.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 3ms 348.0 KiB
#5 Accepted 3ms 344.0 KiB
#6 Accepted 3ms 344.0 KiB
#7 Accepted 2ms 364.0 KiB
#8 Accepted 3ms 372.0 KiB
#9 Accepted 2ms 368.0 KiB
#10 Accepted 3ms 372.0 KiB

信息

递交者
类型
递交
题目
P1121 马拦过河卒
语言
C++
递交时间
2018-08-14 15:05:24
评测时间
2018-08-14 15:05:24
评测机
分数
100
总耗时
32ms
峰值内存
384.0 KiB