| ||||||||||
| 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 | |||||||||
俺哭了#include<iostream>
#include<math.h>
#include<set>
using namespace std;
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);
if(t_min>t0)t_min=t0;
}
cout<<t_min<<endl;
}
getchar();
return 0;
}
//这么简单的WRONG了N^n遍了
怎么错了
呜误
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator