Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
memset应该很猛的呀,1000*1000的char数组memset1000次才不到1sIn 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator