delete pics to save space
This commit is contained in:
10
1.1634.cpp
Normal file
10
1.1634.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#include<cstdio>
|
||||
typedef long long LL;
|
||||
LL sum=1,x; int n;
|
||||
int main()
|
||||
{
|
||||
scanf("%lld%d",&x,&n);
|
||||
while(n-->0) sum=sum+sum*x;
|
||||
printf("%lld\n",sum);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user