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

TLE的同学,可以看看这

Posted by train at 2009-11-21 13:35:40 on Problem 1002
1,用map来存储电话号码和次数的对应关系的时候,电话号码用int存储<int, int>,如果用string存储的话,会超时
2. 用快排,直接用qsort即可,如果自己写的话,没有库函数来的快
3. 用printf代替cont输出,cout输出比printf输出慢多了 

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