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

真的郁闷了,我有时候总是想不通为什么自己写的程序老是比人家的内存,时间都用得多呢。

Posted by huicpc16 at 2005-09-03 21:14:41 on Problem 2467
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:
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