2015年6月19日

memset会显著增加时间和空间的消耗吗

摘要: 刷OJ时,发现差不多的代码,室友的内存大约是我的一半。 经过详细的比对,发现问题出现在memset函数上面。const int maxx=1010;int a[maxx][maxx];memset(a,0,sizeof(a));结果如图 如果手写循环进行初始化的话:const int maxx=10... 阅读全文

posted @ 2015-06-19 02:15 windrises 阅读(1184) 评论(3) 推荐(0) 编辑

导航