【想清楚】Chris and Road
来源:互联网 发布:ubuntu vmdk 下载 编辑:程序博客网 时间:2024/05/04 10:09
#include <cstdio>#include <algorithm>#include <string>#include <map>#include <algorithm>#include <iostream>using namespace std;int main(){int n;double w, v, u;cin >> n >> w >> v >> u;double zt=0;int ok1 = 1, ok2 = 1;for (int i = 0; i < n; i++){double x, y;cin >> x >> y;if (x / v < y / u)ok1 = 0;if (x / v > y / u)ok2 = 0;zt = max(zt, x / v + (w - y) / u);}if (ok1 || ok2)printf("%.10f\n", w / u);elseprintf("%.10f\n", zt);//system("pause");return 0;}
阅读全文
0 0
- 【想清楚】Chris and Road
- codeforces 703C Chris and Road
- CodeForces - 703C Chris and Road
- CodeForces 703C Chris and Road
- codeforces 703 C. Chris and Road
- [CF 703C]Chris and Road
- 【23.15%】【codeforces 703C】Chris and Road
- CodeForces 703C Chris and Road (几何,二分)
- Codeforces 703C Chris and Road 二分、思考
- Codeforces Round #365 (Div. 2) [C] Chris and Road
- Codeforces Round #365 (Div. 2) C. Chris and Road
- 【CodeForces】703C - Chris and Road(思维,好题)
- Codeforces 703C Chris and Road(计算几何)
- Codeforces Round #365 (Div. 2) C. Chris and Road 【数学】
- CodeForces 703 C.Chris and Road(贪心)
- Codeforces Round #365 (Div. 2) C. Chris and Road(计算几何+二分)
- Codeforces Round #365 (Div. 2) C. Chris and Road(计算几何+二分)
- Codeforces Round #365 (Div. 2) -- C. Chris and Road (思路水题)
- 风投与IT行业
- 12.15 省选训练总结
- 【备忘】2017年最新老男孩全新Python3.5零基础+高级+完整项目视频教程
- python 3 字符串方法
- CSS3中translate、transform和translation的区别和联系
- 【想清楚】Chris and Road
- java 构造器
- ubuntu swoole扩展安装
- Java微信公众平台开发之发送模板消息
- 例题9-4 单向TSP(Unidirectional TSP, UVa 116)
- Sublime text 设置快捷键让html文件在浏览器中打开
- hibernate03 映射关系
- JDK在Windows环境下的共存问题(1.7与1.8)
- [Android]监听输入框移动布局避免键盘遮盖提交按钮