aboutsummaryrefslogtreecommitdiff
path: root/01_introductory_problems/bit_strings_1617.cpp
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-07-06 19:08:08 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-07-06 19:08:08 +0200
commit96254947699986c59f0dc63d69fd4b76bd3ed43e (patch)
tree6c4dca945d7f7427c48be234d827fe4d33be02c5 /01_introductory_problems/bit_strings_1617.cpp
downloadcses-96254947699986c59f0dc63d69fd4b76bd3ed43e.tar.gz
cses-96254947699986c59f0dc63d69fd4b76bd3ed43e.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--01_introductory_problems/bit_strings_1617.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/01_introductory_problems/bit_strings_1617.cpp b/01_introductory_problems/bit_strings_1617.cpp
new file mode 100644
index 0000000..6be46ac
--- /dev/null
+++ b/01_introductory_problems/bit_strings_1617.cpp
@@ -0,0 +1,10 @@
1#include <iostream>
2
3int main() {
4 constexpr long long M = 1e9+7;
5 long long n, a{1};
6 std::cin >> n;
7 while (--n >= 0)
8 a = (a * 2) % M;
9 std::cout << a << std::endl;
10}

Generated with cgit - Back to sebastiano.tronto.net