题目描述
blablabla
样例
blablabla
算法1
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
include[HTML_REMOVED]
using namespace std;
typedef long long LL;
void output(LL n){
for(int i=32;i>=0;i--){
int t=n>>i&1;
if(!t&&i==32)continue;
cout<<t;
}
puts("");
}
int main(){
int T;
cin>>T;
while(T–)
{
LL n=0;
string s;
cin>>s;
for(auto c:s)n=n*2+c-‘0’;//从左往右计算二进制转十进制 前导零无影响
cout<<n<<endl;
output(n+1);
output(n+3);
}
}
----------
### 算法2
##### (暴力枚举) $O(n^2)$
blablabla
#### 时间复杂度
#### 参考文献
#### C++ 代码
blablabla
```