mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 18:52:02 +00:00
P1634 禽兽的传染病
R39988381
This commit is contained in:
parent
182bdf71f7
commit
c6e7e720fa
13
problem/P1634/P1634.cpp
Normal file
13
problem/P1634/P1634.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user