(简单模拟2.1.2)POJ 1922 Ride to School(求最小值)
来源:互联网 发布:c语言cos函数怎么求 编辑:程序博客网 时间:2024/06/02 04:59
/* * POJ_1922.cpp * * Created on: 2013年10月24日 * Author: Administrator */#include <iostream>#include <cstdio>#include <cmath>using namespace std;int main(){int n;while(scanf("%d",&n)!=EOF,n){int i;double min = INT_MAX;for(i = 0 ; i < n ; ++i){int v,t;scanf("%d%d",&v,&t);double x;if(t >= 0 && (x = t + 4.5/v*3600)<min ){//t < 0 时不能影响操作结果,因为他已经出发min = x;}}printf("%d\n",(int)ceil(min));}return 0;}
- (简单模拟2.1.2)POJ 1922 Ride to School(求最小值)
- POJ 1922 Ride to School 简单模拟
- POJ 1922 Ride to School
- POJ 1922 Ride to School
- POJ 1922 Ride to School
- poj 1922 Ride to School
- poj 1922 Ride to School
- POJ 1922 Ride to School
- POJ:1922 Ride to School
- POJ 1922 - Ride to School
- POJ 1922 Ride to School
- POJ 1922 Ride to School
- POJ-1922 Ride to School
- POJ 1922 Ride to School 解题报告
- Ride to School(POJ 1922)
- Ride to School - POJ 1922 水题
- POJ 1922:Ride to School:水题练java
- POJ——1922 Ride to School
- 三星SMDK4412的烧写镜像
- Tomcat server.xml笔记
- 文件夹选项为什么没有了共享一页?
- Android Fragment实践(二)
- 转载_echo的一些命令
- (简单模拟2.1.2)POJ 1922 Ride to School(求最小值)
- bbed copy修复坏块和delete的数据
- Makefile文件中如何输出打印变量
- 企业知识管理安全
- “位域”与结构体内部对齐、结构体外部对齐(自己定义的)
- 通过WebView实现简单的浏览器
- 类型转换
- hdu ——3018——Ant Trip(一笔画问题)
- 面试中常见的琐碎知识(一)