您的位置:首页 > 其它

nyoj 97 兄弟郊游问题

2014-07-22 12:57 330 查看


#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int n;
int m,x,y,z;
scanf("%d",&n);
while(n--)
{
scanf("%d%d%d%d",&m,&x,&y,&z);
printf("%.2f\n",m*x*1.0/(y-x)*z);
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: