MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

CSES_Problems/Bit Strings/solution.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8*/
9
10signed main() {
11 int n;
12 cin >> n;
13 const int mod = 1e9 + 7;
14 int ans = 1;
15 for(int i = 0; i < n; i++) {
16 ans *= 2;
17 ans %= mod;
18 }
19 cout << ans <<"\n";
20 return 0;
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected