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> using namespace std; int main() { int n; while(cin>>n && n!=0) { int s0,t0,s1,t1,t2=0; cin>>s0>>t0; if(16200%s0==0) t0=16200/s0; else t0=16200/s0+1; for(int i=0;i<n-1;i++) { cin>>s1>>t1; if(t1>=0 && s1>=s0) { if(16200%s1==0) t2=t1+16200/s1; else t2=t1+16200/s1+1; if(t2<t0) t0=t2; } t2=0; } cout<<t0<<endl; } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator