cses

My solution for the coding challenges of cses.fi
git clone https://git.tronto.net/cses
Download | Log | Files | Refs | README

bit_strings_1617.cpp (171B)


      1 #include <iostream>
      2 
      3 int 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 }