1 2 3 4 5 6 7 8 9 10
#include <iostream> 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; }
Generated with cgit - Back to sebastiano.tronto.net