From 96254947699986c59f0dc63d69fd4b76bd3ed43e Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 6 Jul 2026 19:08:08 +0200 Subject: Initial commit --- 01_introductory_problems/bit_strings_1617.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 01_introductory_problems/bit_strings_1617.cpp (limited to '01_introductory_problems/bit_strings_1617.cpp') 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 @@ +#include + +int main() { + constexpr long long M = 1e9+7; + long long n, a{1}; + std::cin >> n; + while (--n >= 0) + a = (a * 2) % M; + std::cout << a << std::endl; +} -- cgit v1.3