Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:15: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
  if(!(b&(b-1))==1)
               ^~
foo.cc:9:5: note: add parentheses around left hand side expression to silence this warning
  if(!(b&(b-1))==1)
     ^~~~~~~~~~
     (         )
foo.cc:7:8: warning: unused variable 'c' [-Wunused-variable]
  int b,c;
        ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Wrong Answer Read 0, expect 1. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1140 二进制编码第5位是否为0
语言
C++
递交时间
2021-10-23 21:19:59
评测时间
2021-10-23 21:19:59
评测机
分数
50
总耗时
3ms
峰值内存
384.0 KiB