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

AC1002,曲折的取经路

Posted by gfedcba at 2009-01-05 16:44:08 on Problem 1002
第一次:用字符串存放电话号码,比较的时候用strcmp,自己写QSORT,Time Limit Exceeded
第二次:用整数存放电话号码,比较的时候用==,自己写QSORT,照样Time Limit Exceeded
第三次:用整数存放电话号码,比较的时候用==,用系统自带的快速排序qsort,终于AC了,用时407MS

后记:N*N的算法都要超时的,N*logN也有可能超时,要进一步地优化.感谢大牛johnson4303对我提供的帮助和鼓励,谢谢~

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