fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. const int mod=998244353;
  4. void pow(int a,int b)
  5. {
  6. if(b==0) return;
  7. int res=1;
  8. while(b>0){
  9. if(b&1) res=res*a%mod;
  10. a=a*a%mod;
  11. b>>=1;
  12. }
  13. cout<<res;
  14. }
  15. signed main()
  16. {
  17. ios_base::sync_with_stdio(false);
  18. cin.tie(0);
  19. cout.tie(0);
  20. int a=10,b=1e8;
  21. pow(a,b);
  22. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
486678768