Accepted

/in/foo.cc: In function 'void BFS()':
/in/foo.cc:27:47: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
             if(y<3 && (tmp&(1<<i))!=(tmp&(1<<i-1)))   //向右交换,二进制序列的i和i-1交换
                                              ~^~
/in/foo.cc:29:23: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
                 z=1<<i-1;
                      ~^~
/in/foo.cc:35:47: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
             if(x<3 && (tmp&(1<<i))!=(tmp&(1<<i-4)))  //向下交换,二进制序列的i和i-4交换
                                              ~^~
/in/foo.cc:37:23: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
                 z=1<<i-4;
                      ~^~
# 状态 耗时 内存占用
#1 Accepted 1ms 476.0 KiB
#2 Accepted 1ms 224.0 KiB
#3 Accepted 1ms 484.0 KiB
#4 Accepted 2ms 600.0 KiB
#5 Accepted 4ms 612.0 KiB
#6 Accepted 3ms 476.0 KiB
#7 Accepted 4ms 604.0 KiB
#8 Accepted 4ms 472.0 KiB
#9 Accepted 4ms 476.0 KiB
#10 Accepted 4ms 476.0 KiB

信息

递交者
类型
递交
题目
「一本通 1.4 练习 1」棋盘游戏
语言
C++
递交时间
2021-01-21 11:12:24
评测时间
2021-01-21 11:12:24
评测机
分数
100
总耗时
33ms
峰值内存
612.0 KiB