0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-13 04:06:26 +00:00
OI-codes/Luogu/P1634/P1634.cpp

14 lines
238 B
C++
Raw Normal View History

2021-11-19 09:01:13 +00:00
#include <bits/stdc++.h>
2020-10-17 12:41:29 +00:00
using namespace std;
int main() {
2021-11-19 09:01:13 +00:00
unsigned long long x, n, ans = 1;
2020-10-17 12:41:29 +00:00
cin >> x >> n;
2021-11-19 09:01:13 +00:00
for (unsigned long long i = 0; i < n; i++) {
ans += ans * x;
2020-10-17 12:41:29 +00:00
}
cout << ans << endl;
return 0;
}