http://acm.hdu.edu.cn/showproblem.php?pid=2268

小学四年级应用题,让我找回了儿时的快乐。。。

#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std ;
int main()
{
int a,b,c ;
while(~scanf("%d%d%d",&a,&b,&c))
{
if(b<=a)
{
printf("%.3lf\n",c*1.0/a) ;
continue ;
}
double x=c*1.0*(b+a)/(*a+b) ;
printf("%.3lf\n",x/b+(c-x)/a) ;
}
return ;
}

最新文章

  1. storm学习好文链接
  2. [转] Android优秀开源项目
  3. mysql自动添加最后修改时间
  4. Register DLL Assembly Gacutil.exe(全局程序集缓存工具)
  5. 16条Web2.0法则的编程思想
  6. How Tomcat Works(十四)补充
  7. 关于C# Winform 程序开机自动启动
  8. bootstrap 响应式布局 居中问题
  9. 转 SSH框架搭建详细图文教程
  10. UWP Windows历史上最漂亮的UWP框架出炉!!!
  11. luogu【P1144】最短路计数
  12. Python3 tkinter基础 Radiobutton 创建三个单选钮
  13. 当padding/margin的取值形式为百分比时。。。。。
  14. [Linux] PHP-FPM开启慢日志记录
  15. 在Linux环境下安装Python3
  16. linux vue uwsgi nginx 部署路飞学城 安装 vue
  17. android 环境的配置
  18. 软工个人作业-博客作业-WEEK2
  19. C# 枚举器和迭代器
  20. http put post请求区别

热门文章

  1. 用python收集系统信息
  2. Jenkins 集成Maven打包SpringBoot项目并自动部署到Tomcat服务器
  3. IE兼容性视图,新增元素导致白页面
  4. 解题报告:poj2689 Prime Distance
  5. 一款简单易用的.Net 断言测试框架 : Shouldly
  6. Visual Studio 2010 C++ 属性设置基础
  7. PHP 7.3.0.beta3 发布,下个版本将进入 RC 阶段
  8. Bootstrap 与 IE 兼容模式 关系讲解
  9. Codeforces Round #428 (Div. 2)E. Mother of Dragons
  10. C# 获取命名空间对应的程序集位置