提交时间:2024-07-31 20:20:37

运行 ID: 49732

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