The Vampires and Lykans are fighting each other to death. The war has become so fierce that, none knows who will win. The humans want to know who will survive finally. But humans are afraid of going to...
分类:
其他好文 时间:
2015-06-05 14:04:23
阅读次数:
126
Mashmokh’s boss, Bimokh, didn’t like Mashmokh. So he fired him. Mashmokh decided to go to university and participate in ACM instead of finding a new job. He wants to become a member of Bamokh’s team. I...
分类:
其他好文 时间:
2015-06-02 13:24:48
阅读次数:
132
Connect the Cities
Description
In 2100, since the sea level rise, most of the cities disappear. Though some survived cities are still connected with others, but most of them become disconnected. The...
分类:
其他好文 时间:
2015-05-26 18:50:36
阅读次数:
215
VF时间限制:1000 ms | 内存限制:65535 KB 难度:2描述Vasya is the beginning mathematician. He decided to make an important contribution to the science and to become f...
分类:
其他好文 时间:
2015-05-26 00:15:48
阅读次数:
236
Desert KingTime Limit:3000MSMemory Limit:65536KTotal Submissions:21855Accepted:6103DescriptionDavid the Great has just become the king of a desert cou...
分类:
其他好文 时间:
2015-05-25 16:19:22
阅读次数:
119
VF时间限制:1000ms | 内存限制:65535KB难度:2描述Vasya is the beginning mathematician. He decided to make an important contribution to the science and to become famo...
分类:
其他好文 时间:
2015-05-22 18:51:22
阅读次数:
151
FindMinimuminRotatedSortedArrayTotalAccepted:42341TotalSubmissions:127863MySubmissionsQuestionSolutionSupposeasortedarrayisrotatedatsomepivotunknowntoyoubeforehand.(i.e.,0124567mightbecome4567012).Findtheminimumelement.Youmayassumenoduplicateexistsinthearra..
分类:
其他好文 时间:
2015-05-21 06:48:26
阅读次数:
142
FindMinimuminRotatedSortedArrayIITotalAccepted:25678TotalSubmissions:80978MySubmissionsQuestionSolutionFollowupfor"FindMinimuminRotatedSortedArray":Whatifduplicatesareallowed?Wouldthisaffecttherun-timecomplexity?Howandwhy?Supposeasortedarrayisrotatedatsomep..
分类:
其他好文 时间:
2015-05-21 06:44:54
阅读次数:
162
Vasya is the beginning mathematician. He decided to make an important contribution to the science and to become famous all over the world. But how can he do that if the most interesting facts such as P...
分类:
其他好文 时间:
2015-05-20 09:57:25
阅读次数:
97
dev_hold和dev_put是配对使用的,一个用来引用计数加一,一个用于引用计数减一。
查看模块代码,没有发现单独直接使用dev_hold的情况。那会不会是简介调用呢,仔细查找了好久,果然是间接调用。
在我们一些模块代码中,经常会通过dev_get_by_name来获取设备信息。而dev_get_by_name封装了dev_hold,导致引用计数加一。由于dev_get_by_name是内核提供的接口,不熟悉的coder很可能不晓得这点,也没有注意到需要调用dev_put.,于是便有了上...
分类:
Web程序 时间:
2015-05-19 19:13:58
阅读次数:
342