概率——17icpc西安

不知道为什么是这样子的。。

#include<bits/stdc++.h>
using namespace std;
int m,n;
int main(){
    while(scanf("%d%d",&n,&m)!=EOF){
        printf("%.5lf\n",1.0*n/(n+m));
    }
}

猜你喜欢

转载自www.cnblogs.com/zsben991126/p/11628803.html