Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

想不到这样也能AC,郁闷

Posted by huicpc21 at 2005-08-27 17:32:42 on Problem 2467
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator