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了,373MS,说下个人心得

Posted by csj at 2008-01-23 14:52:34 on Problem 1002
1. No duplicates.后面的空格可要可不要,我两种都试过,都AC了。
2. 用以读入输入数据的缓冲区buff的长度不要太小,我之前是20就WA,改成200后就AC了。
3. 尽量不要使用函数调用,尤其是经常反复调用的那种!我的程序里就没有调用自己写的函数。由于计算机每次调用函数都涉及到环境的保存,变量的压栈,如果调用的次数多了,对时间的影响是巨大的。如果一定要经常调用某个自己写的函数,记得加上inline!

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