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 |
Re:这题有解题报告没In Reply To:Re:这题有解题报告没 Posted by:longpo at 2008-06-30 11:30:25 次数和运行时间的对应我从来只相信秒表 > > frkstyc 大大是管理员啊, 能否告诉小弟 为什么开5000000的数组, > for(i=2;i<N;i++){ > for(j=i;j<N;j+=i){ > num[j]++; > ans[j]+=num[i]; > } > } 我加个t计算循环的次数,才7000万多次,但运行要很长时间, 是不是寻址很费时? > 不胜感激~ Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator