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:想不到这样也能AC,郁闷 Posted by:huicpc21 at 2005-08-27 17:32:42 > #include <stdio.h> > #include <math.h> > > main(){ > double d = 0; > int x,X,y,Y,t; > scanf("%*d%*d"); > while (4 == scanf("%d%d%d%d",&x,&y,&X,&Y)) { > d += hypot(x-X,y-Y); > } > t = d/1000*2/20*60+.5; > printf("%d:%0.2d\n",t/60,t%60); > } > Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator