Files
python/LuoGu/RuMen/P1634.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

13 lines
250 B
C++

#include <bits/stdc++.h>
using namespace std;
int x, n;
long long t = 1;
int main() {
ios::sync_with_stdio(false); //读入输出优化的强迫症
cin >> x >> n;
for (int i = 0; i < n; t = t + t * x, i++);
cout << t;
}