概率——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));
    }
}

 

posted on 2019-10-06 22:30  zsben  阅读(129)  评论(0编辑  收藏  举报

导航