/ Vijos /

记录详情

Wrong Answer

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

信息

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