HDU 2268
2024-08-27 21:47:23
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 ;
}
最新文章
- storm学习好文链接
- [转] Android优秀开源项目
- mysql自动添加最后修改时间
- Register DLL Assembly Gacutil.exe(全局程序集缓存工具)
- 16条Web2.0法则的编程思想
- How Tomcat Works(十四)补充
- 关于C# Winform 程序开机自动启动
- bootstrap 响应式布局 居中问题
- 转 SSH框架搭建详细图文教程
- UWP Windows历史上最漂亮的UWP框架出炉!!!
- luogu【P1144】最短路计数
- Python3 tkinter基础 Radiobutton 创建三个单选钮
- 当padding/margin的取值形式为百分比时。。。。。
- [Linux] PHP-FPM开启慢日志记录
- 在Linux环境下安装Python3
- linux vue uwsgi nginx 部署路飞学城 安装 vue
- android 环境的配置
- 软工个人作业-博客作业-WEEK2
- C# 枚举器和迭代器
- http put post请求区别
热门文章
- 用python收集系统信息
- Jenkins 集成Maven打包SpringBoot项目并自动部署到Tomcat服务器
- IE兼容性视图,新增元素导致白页面
- 解题报告:poj2689 Prime Distance
- 一款简单易用的.Net 断言测试框架 : Shouldly
- Visual Studio 2010 C++ 属性设置基础
- PHP 7.3.0.beta3 发布,下个版本将进入 RC 阶段
- Bootstrap 与 IE 兼容模式 关系讲解
- Codeforces Round #428 (Div. 2)E. Mother of Dragons
- C# 获取命名空间对应的程序集位置