Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

俺哭了

Posted by sunnvya at 2006-09-29 10:09:38 on Problem 1922
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator