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

唉!一直WA,最后才看明白,是因为把 eh 写成了 en 。另外经过测试发现,使用malloc比较耗费时间!

Posted by yqshare at 2010-08-08 22:56:28
唉!一直WA,最后才看明白,是因为把 eh 写成了 en 。
另外经过测试发现,使用malloc比较耗费时间!为了节省内存,我每次都使用了malloc
因此,造成时间浪费到malloc上去了,其实用数组一次性们分配够的话,速度更快些,呵呵
我用工程的思想考虑这个问题了
动态化,结果速度也不怎么好!呵呵

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