c++
李木木乃伊
尘世中一个迷途小书童,关注计算机视觉,深度学习,AIGC。
展开
-
memset与fill函数
fill包含在中,btw,中也包含了它。 memset包含在头文件中。两者都可以用来对数组填充,那么他们的区别在哪里呢?memset是对按照字节来填充的,所以一般用来填充char型数组,也经常用于填充int型的全0或全-1操作。int arr[10];memset(arr,0,sizeof(arr));fill是按照单元来填充的,所以可以填充一个区间的任意值。int arr[10];fill(原创 2017-03-14 14:23:05 · 604 阅读 · 0 评论 -
1008. Elevator (20)
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seco原创 2017-03-14 14:33:18 · 236 阅读 · 0 评论 -
1012. The Best Rank (25)
改日添加讲解 To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algebra), and原创 2017-03-14 14:34:35 · 259 阅读 · 0 评论 -
1013. Battle Over Cities (25)
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we need原创 2017-03-14 14:36:15 · 335 阅读 · 0 评论 -
GOTURN源码分析&阅读笔记
这个礼拜把GOTURN源码扫了一遍,特此总结一下。先附上文章以及源码地址:Abstract:http://davheld.github.io/GOTURN/GOTURN.htmlGithub源码:https://github.com/davheld/GOTURN原创 2017-03-16 15:22:18 · 3597 阅读 · 9 评论