Files
python/TangDou/LanQiaoBei/LanQiao12GuoSai/BC_5_3.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

13 lines
264 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int n = 5;
int s = 13;
for (int i = n - 1; i >= 0; i--) //5位
if (s & (1 << i)) //0还是非0
cout << 1 << " ";
else cout << 0 << " ";
return 0;
}