solution.cpp 172 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
using namespace std;
int main()
{
    long long n;
    cin >> n;
    while (n)
    {
        cout << n << " ";
        n = n / 2;
    }
    return 0;
}