如果发现广告等破坏行为,请尽量将条目恢复到较早的版本而不是把相应内容直接删除,谢谢合作。

URAL/1619

来自"NOCOW"

跳转到: 导航, 搜索
#include <iostream>
using namespace std;
int n,m,k;
double ans;
int main()
{
    cin >> n;
    while (n--)
    {
        cin >> k >> m;
        ans=1.0-(double)m/(double)(k+1);
        if (ans < 0)  ans=0;
        cout.precision(6);
        cout.setf(ios::fixed);
        cout << ans << endl;
    }
    return 0;
}
//by zzy
个人工具