很明显,概率呈线性增长,又 得公式为:
#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; }
暂无评论