fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define mod (1000000000+7)
  4. #define ll long long
  5.  
  6. ll modexp(ll x,ll n,ll res=1){
  7. if(n==0) return res;
  8. return modexp(x, n-1,(x % mod *res % mod) % mod);
  9. }
  10. int main(){
  11. cout<<modexp(2,100000);
  12. }
Success #stdin #stdout 0.01s 5408KB
stdin
Standard input is empty
stdout
607723520