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

Re:memset 费时大不大 比如int street[45][1996]; memset(street, 0, sizeof(street));费时大不,

Posted by the_nameless_spectre at 2020-03-27 21:29:57 on Problem 1041
In Reply To:memset 费时大不大 比如int street[45][1996]; memset(street, 0, sizeof(street));费时大不, Posted by:xiaxia at 2006-04-17 15:09:39
> memset什么原理和挨个赋0一样  时间也相同?
复杂度一样
就跟memcpy和手动循环一样
但这些函数常熟要小一些

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