fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. using ll = long long;
  4.  
  5. int main() {
  6. ll taban, us;
  7. cin >> taban >> us;
  8. ll cevap = 1;
  9. for (ll i = 0; i < us; i++) {
  10. cevap *= taban;
  11. }
  12. cout << taban << "^" << us << " = " << cevap << "\n";
  13. }
Success #stdin #stdout 10.08s 5276KB
stdin
5 10000000000
stdout
5^10000000000 = 6320951419370893313