MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/Maths/ModularExponentiation.cpp:12–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12int main()
13
14{
15
16
17 #ifndef ONLINE_JUDGE
18
19freopen("input.txt","r",stdin);
20
21
22freopen("output.txt","w",stdout);
23
24#endif
25
26int n,m;
27cin>>n>>m;
28int r=pow(2,n);
29cout<<m%r;
30return 0;
31}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected