Skip to main content

2065.整除序列

思路

暴力即可

代码

#include <bits/stdc++.h>

using namespace std;

typedef unsigned long long ull;

ull n;

int main() {
ios::sync_with_stdio(false);
cin >> n;

while (n) {
cout << n << " ";
n /= 2;
}
return 0;
}