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 | f6cdc4ffb43519ca57486be396d4694bba2f7e4c (patch) | |
| tree | 703f24337c15e5eb8fbeef988f431c406e53eadd /works/solutions | |
| parent | 299f54253988522718455b7a7d85958a44fc9a9e (diff) | |
| download | crupest-f6cdc4ffb43519ca57486be396d4694bba2f7e4c.tar.gz crupest-f6cdc4ffb43519ca57486be396d4694bba2f7e4c.tar.bz2 crupest-f6cdc4ffb43519ca57486be396d4694bba2f7e4c.zip | |
import(solutions): Add problem 2065.
Diffstat (limited to 'works/solutions')
| -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 |
