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

memcpy好慢呀,我用memcpy会超时,改成直接赋值就0ms,太搞了!

Posted by zhb_msqx at 2007-09-08 18:09:50 on Problem 3125
for(i=0;i<n;i++){
      //cin>>a[i];
      scanf("%d",&a[i]);
      sortarr[i]=a[i];
}
开始写的是memcpy(sortarr,a,110);结果就超时了

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