0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 20:16:27 +00:00
OI-codes/Luogu/problem/P1634/P1634.cpp

14 lines
234 B
C++
Raw Normal View History

2020-10-17 12:41:29 +00:00
#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;
}