| 记录编号 | 43529 | 评测结果 | AAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 559.小车问题 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.002 s | ||
| 提交时间 | 2012-10-11 09:47:00 | 内存使用 | 3.15 MiB | ||
#include <iostream>
#include <cstdio>
using namespace std;
int main(void)
{
freopen("car.in","r",stdin);
freopen("car.out","w",stdout);
double s,hv,cv,t1,t2;
cin>>s>>hv>>cv;
t1=s/(cv+hv+hv*(cv-hv)/(cv+hv));
t2=t1*(cv-hv)/(cv+hv);
printf("%.2lf\n",t1+t2+t1);
return(0);
}