Files
python/TangDou/AcWing/FloodFill/1098_0.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

12 lines
255 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <bits/stdc++.h>
using namespace std;
int main() {
//将十进制转为二进制,并输出每个二进制位的值是0还是1
int n = 13;
for (int i = 3; i >= 0; i--)
cout << (n >> i & 1) << " ";
return 0;
}