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 |
想不到这样也能AC,郁闷#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