logo AlgoBeat OnlineJudge
登录 注册

题解

作者: Steven1356  ·  发布于 2026-10-05 15:56:43  ·  最后修改于 2026-10-05 21:31:54
已通过
审核员:Carey_chen HCl · 2026-10-05 21:31:54

很明显,概率呈线性增长,又 得公式为:

#include<bits/stdc++.h>
using namespace std;
signed main(){
	double n,m;
	while(cin>>n>>m)cout<<fixed<<setprecision(6)<<n/(n+m)<<"\n";
    return 0;
}

暂无评论

登录 后即可评论。