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 |
奇怪!这样就过了In Reply To:Re:哪位能看看,谢谢 Posted by:zfjrz at 2004-10-21 20:12:12 void main() { int n; int Ut,min; int t,i,v; scanf("%d",&n); while (n!=0) { min=-1; Ut=16200; for (i=0;i<n;i++) { scanf("%d %d",&v,&t); if (t>=0 && v>0 && v<=40) { Ut=(int)ceil((double)16200/v+t); if (Ut<min || min==-1) min=Ut; } } 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