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

cmp里面其实可以这样

Posted by frkstyc at 2005-03-24 20:06:56 on Problem 1002
In Reply To:我觉的自己能省的都省了,怎么还是在tle呢?困惑……是循环太多了吗? Posted by:cpp050200448236 at 2005-03-24 19:16:55
> int cmp ( const void *a ,const void *b ) 
>  {
        return *(int*)a - *(int*)b;
>  }
> 

main里面的tel我绝对会这样写:long int tel[100000];

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