CodeForces 591A Wizards' Duel
水题
#include<cstdio> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int main() { double l,a,b; while(~scanf("%lf%lf%lf",&l,&a,&b)) { printf("%.4lf\n",l/(a+b)*a); } return 0; }
水题
#include<cstdio> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int main() { double l,a,b; while(~scanf("%lf%lf%lf",&l,&a,&b)) { printf("%.4lf\n",l/(a+b)*a); } return 0; }