poj1922
来源:互联网 发布:2016网络诈骗案 编辑:程序博客网 时间:2024/05/29 20:05
简单数学题
#include<cstdio>#include<cmath>#include<algorithm>#include<cstring>using namespace std;int n;int main(){ while(scanf("%d",&n)!=EOF) { if(n==0) break; int ans=0x3f3f3f3f; for(int i=0;i<n;i++) { int x,y; scanf("%d%d",&x,&y); if(y<0) continue; ans=min(ans,(int)ceil((4.5*3600/x)+y)); } printf("%d\n",ans); } return 0;}
0 0
- poj1922
- poj1922
- poj1922
- POJ1922
- poj1922
- poj1922
- POJ1922-Ride to School
- 1poj1922(贪心)
- POJ1922 Ride to School
- POJ1922 Ride to School
- poj1922 Ride to Office
- POJ1922浅析------Ride to School
- ZOJ2229 POJ1922 HDU1445 Ride to School
- POJ1922-Ride To School (C语言实现)
- PAT B1007
- 寄存器(cpu工作原理)
- 浏览器控制台操作——随身笔记
- 图
- vb winsock udp循环绑定端口直到成功
- poj1922
- php框架
- PAT B1008
- 走迷宫问题——非递归算法
- 零欧电阻及其作用
- SSL P2209 数数
- 使用java反射实现对象工厂以及工具类的编写
- Starry Night_usaco 5.1_bfs+暴力
- 70. Climbing Stairs#1(Done)