Posted on 2012-08-01 09:54
RANBO 阅读(194)
评论(0) 编辑 收藏 引用
http://acm.nyist.net/JudgeOnline/problem.php?pid=97
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int N;
cin>>N;
while (N--)
{
int m,x,y,z;
cin>>m>>x>>y>>z;
cout<<fixed<<setprecision(2)<<double(z*x*m/(y-x))<<endl;
}
return 0;
}
本地过了,但被WA了,找不出原因!