/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void turn(int, int)':
/in/foo.cc:11:24: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  gg[i] ^= j-1>=0 ? 7<<j-1 : 7>>1-j;//血的教训,千万不要移动"负数"位 
                       ~^~
/in/foo.cc:11:33: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
  gg[i] ^= j-1>=0 ? 7<<j-1 : 7>>1-j;//血的教训,千万不要移动"负数"位 
                                ~^~
/in/foo.cc: In function 'int solve()':
/in/foo.cc:40:14: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   if(gg[4]&31==31){ //31 : 11111
            ~~^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 208.0 KiB
#2 Accepted 1ms 216.0 KiB
#3 Accepted 1ms 216.0 KiB
#4 Wrong Answer 5ms 216.0 KiB
#5 Wrong Answer 5ms 208.0 KiB
#6 Wrong Answer 5ms 216.0 KiB
#7 Wrong Answer 5ms 208.0 KiB
#8 Wrong Answer 5ms 216.0 KiB
#9 Wrong Answer 5ms 208.0 KiB
#10 Wrong Answer 5ms 208.0 KiB

信息

递交者
类型
递交
题目
P1197 费解的开关
语言
C++
递交时间
2019-01-20 01:49:19
评测时间
2019-01-20 01:49:19
评测机
分数
30
总耗时
44ms
峰值内存
216.0 KiB