diff options
author | crupest <crupest@outlook.com> | 2021-03-23 20:51:22 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-03-23 20:51:22 +0800 |
commit | 600953e56a639808eaa8e10f1e58d9c37a747d95 (patch) | |
tree | bbe3f67dc4ddb15ae1b2ed2687ec05c7a2284a1a /works/solutions/acwing/2065.cpp | |
parent | a7e419342f1b0f202353d5a735c98a190e7dc856 (diff) | |
download | crupest-600953e56a639808eaa8e10f1e58d9c37a747d95.tar.gz crupest-600953e56a639808eaa8e10f1e58d9c37a747d95.tar.bz2 crupest-600953e56a639808eaa8e10f1e58d9c37a747d95.zip |
import(solutions): Add problem 2065.
Diffstat (limited to 'works/solutions/acwing/2065.cpp')
-rw-r--r-- | works/solutions/acwing/2065.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/works/solutions/acwing/2065.cpp b/works/solutions/acwing/2065.cpp new file mode 100644 index 0000000..a0c47c2 --- /dev/null +++ b/works/solutions/acwing/2065.cpp @@ -0,0 +1,16 @@ +#include <iostream>
+
+int main() {
+ std::ios_base::sync_with_stdio(false);
+ std::cin.tie(nullptr);
+
+ long long n;
+ std::cin >> n;
+
+ while (n) {
+ std::cout << n << ' ';
+ n /= 2;
+ }
+
+ return 0;
+}
\ No newline at end of file |