mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-11 22:46:28 +00:00
14 lines
238 B
C++
14 lines
238 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
unsigned long long x, n, ans = 1;
|
|
cin >> x >> n;
|
|
for (unsigned long long i = 0; i < n; i++) {
|
|
ans += ans * x;
|
|
}
|
|
cout << ans << endl;
|
|
return 0;
|
|
}
|