| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:俺哭了In Reply To:俺哭了 Posted by:sunnvya at 2006-09-29 10:09:38 #include<iostream>
#include<math.h>
#include<set>
using namespace std;
set<long>a;
int main()
{
int n;
long vi,ti,t0, t_min=999999999;
while(cin>>n&&n!=0)
{
for(int i=0;i<n;++i)
{
cin>>vi>>ti;
if(ti<0)continue;
t0=ceil(((4.5/vi)*3600)+ti);
a.insert(t0);
}
cout<<*a.begin()<<endl;
a.clear();
}
getchar();
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator