Run ID:108093

提交时间:2025-01-19 14:25:28

#include <iostream> using namespace std; int main() { int a; cin >> a; if (a == 0) cout << 0; else { int b[32], c = 0; while (a) b[c++] = a % 2, a /= 2; for (; c-- > 0;) cout << b[c]; } return 0; }