POJ1922-Ride To School (C语言实现)
来源:互联网 发布:怎么在淘宝上搜店铺 编辑:程序博客网 时间:2024/06/05 02:40
#include <stdio.h>
#define MIN(a, b) (a < b) ? a : b
int main(void)
{
int n, i;
double s, go_t, to_t, min_t;
while(scanf("%d", &n) && n !=0)
{
min_t = 0x7fffffff;
for(i = 0; i < n; ++i)
{
scanf("%lf %lf", &s, &go_t);
if(go_t >= 0)
{
to_t = 4.5 / s * 3600 + go_t;
min_t = MIN(min_t, to_t);
}
}
if(min_t - (int)min_t !=0)
min_t += 1;
printf("%d\n", (int)min_t);
}
return 0;
}
阅读全文
0 0
- POJ1922-Ride To School (C语言实现)
- POJ1922-Ride to School
- POJ1922 Ride to School
- POJ1922 Ride to School
- POJ1922浅析------Ride to School
- ZOJ2229 POJ1922 HDU1445 Ride to School
- poj1922 Ride to Office
- Ride to School
- Ride to School(水题)
- POJ1992 Ride to School
- Ride to School
- Ride to School
- S-Ride to School
- POJ 1922 Ride to School
- fjnu 1007 Ride to School
- POJ 1922 Ride to School
- FOJ 1190 Ride to School
- pku 1922 Ride to School
- 如何在Apache官网下载Tomcat
- 【python】*与** 参数问题
- 常用Lua开发库redis、mysql、http客户端
- 用两个线程玩猜数字游戏,第一个线程负责随机给出1~100之间的一个整数,第二个线程负责猜出这个数
- 使用python Excel转json,方便游戏策划配置与开发
- POJ1922-Ride To School (C语言实现)
- Linux系统之序章简介
- 蓝桥杯 基础练习 查找整数
- 数组
- 简单的redis集群搭建
- 类的静态成员变量
- 深度学习入门---神经网络1
- 又见回文
- Linux是什么?