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<stdio.h> #include<math.h> void main(){ int N,a,b; double time; scanf("%d",&N); while(N!=0){ int min=0; for(int i=1;i<=N;i++){ scanf("%d %d",&a,&b); if(b>=0) time=(double)4500*3.6/a+b; if(min==0||min>time) min=(int)ceil(time); } printf("%d\n",min); scanf("%d",&N); } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator