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

21
2.1388.cpp Normal file
View File

@ -0,0 +1,21 @@
#include<cstdio>
#include<cmath>
int n,m;
double res,pos;
int main()
{
#ifdef local
freopen("pro.in","r",stdin);
#endif
while(scanf("%d%d",&n,&m)==2)
{
res=0;
for(int i=1;i<n;i++)
{
pos=(double)i/n*(n+m);
res+=fabs(pos-floor(pos+0.5))/(n+m);
}
printf("%.4lf\n",res*10000);
}
return 0;
}