Files
python/TangDou/LanQiaoBei/LanQiao12GuoSai/BC_5_3.cpp

13 lines
264 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#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;
}