提交时间:2024-07-31 20:21:39
运行 ID: 49734
#include <bits/stdc++.h> using namespace std; int main(){ long long n; cin >> n; while(n != 0) { cout << n << " "; n /= 2; } return 0; }