0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2025-01-26 18:00:08 +00:00
OI-codes/Luogu/P1634/P1634.cpp

14 lines
238 B
C++
Raw Normal View History

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