1.中断描述符表的定义(arch/x86/kernel/traps.c)1 gate_desc debug_idt_table[NR_VECTORS] __page_aligned_bss;定义的描述符表为一个结构体数组,数组元素类型为gate_desc,大小为8B。NR_VECTORS宏为256,...
分类:
其他好文 时间:
2014-07-27 21:59:49
阅读次数:
445
终于知道国足多么不容易只要打平就能晋级是说的简单。。
傻逼了,开始没看懂题弄了什么净胜球。。。
直接开搞。
第一个数要输出自己最小的进球 must晋级 0 30 就只能输出30
第二个数要输出自己最大的进球 对方may晋级 30 0 就只能输出30
#include
#include
int main()
{
char s[222];
int a,b,t;...
分类:
其他好文 时间:
2014-07-27 11:43:34
阅读次数:
205
蛮常见一道题目。
思路:
1:排序,按顺序遍历两个数之和twoSum,
2: 二分查找 (0 - twoSum)看是否存在
这题最容易错的地方是must not contain duplicate triplets,所以遍历的这时候要用一个数字记录最后一个遍历的数字是,避免重复。
#include
#include
#include
using namespace s...
分类:
其他好文 时间:
2014-07-27 11:26:22
阅读次数:
260
07-11 13:43:26.184: E/AndroidRuntime(10229): FATAL EXCEPTION: main07-11 13:43:26.184: E/AndroidRuntime(10229): java.lang.RuntimeException: Unable to s...
分类:
移动开发 时间:
2014-07-27 10:58:12
阅读次数:
264
1stingTime Limit: 5000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3200Accepted Submission(s): 1230Problem Desc...
分类:
其他好文 时间:
2014-07-27 10:20:42
阅读次数:
184
STM32 USB Virtual COM USB转串口的功能实现 这次讲的是如何实现USB转串口功能的实现。首先看看工程的布局吧:我们主要要介绍的文件的在USB_User这个组文件。从上面的截图可以看到USB_User这个文件由hw_config.c、usb_desc.c、usb_endp.c、....
分类:
其他好文 时间:
2014-07-27 10:20:02
阅读次数:
336
RewardTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3815Accepted Submission(s): 1162Problem Desc...
分类:
其他好文 时间:
2014-07-26 16:49:02
阅读次数:
287
题目:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in t....
分类:
编程语言 时间:
2014-07-26 09:53:27
阅读次数:
254
题目:Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.F....
分类:
编程语言 时间:
2014-07-26 09:51:47
阅读次数:
215
QueryTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2573Accepted Submission(s): 851Problem Desc...
分类:
其他好文 时间:
2014-07-26 09:51:37
阅读次数:
272