fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define nl '\n'
  5. //#define int long long
  6. int mod = 1e9 + 7;
  7.  
  8. ll fpow(ll n, ll k)
  9. {
  10. if (k == 0)
  11. return 1;
  12. ll res = fpow(n, k / 2) % mod;
  13. res = ((res % mod) * (res % mod)) % mod;
  14. if (k % 2 == 1)
  15. res = ((res % mod) * (n % mod)) % mod;
  16. return res;
  17. }
  18.  
  19. int modInverse(int a, int mod)
  20. {
  21. return fpow(a, mod - 2);
  22. }
  23.  
  24. signed main()
  25. {
  26. ios::sync_with_stdio(0);
  27. cin.tie(0);
  28. cout.tie(0);
  29.  
  30.  
  31. return 0;
  32. }
  33.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty