delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
float x;
int n;
scanf("%f%d",&x,&n);
float ans=0,times=1;
for(int i=0;i<=n;i++)
{
ans+=times;
times*=x;
}
printf("%f\n",ans);
return 0;
}