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

memset应该很猛的呀,1000*1000的char数组memset1000次才不到1s

Posted by fanhqme at 2009-02-13 12:25:54 on Problem 1175
In Reply To:WA N次 TLE N 次 终于AC了~~~ Posted by:Scor at 2008-02-20 01:29:03
#include <cstdio>
#include <string.h>
#include <ctime>
using namespace std;
char dp[1000][1000];
int main()
{
    for (int i=0;i<1000;i++)memset(dp,0,sizeof(dp));
    printf("%d\n",clock());
    getchar();
    return 0;
}
输出
625


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