提交时间:2024-07-31 20:21:02

运行 ID: 49733

#include <bits/stdc++.h> using namespace std; int main(){ long long n; cin >> n; while(n != 1) { cout << n << " "; n /= 2; } return 0; }