posted @ 2014-08-04 15:22 蓝空 阅读(188) 评论(0) 推荐(0) 编辑
摘要:
注意结合queue的用法记忆 top()(注意这个在queue中没有,和queue中的front()一样) // priority_queue::top #include // std::cout #include // std::priority_queue ... 阅读全文
摘要:
long long 在Codeblocks 里可以正常的输入和输出,但是在VC里面就出问题了,会出现: binary '>>' : no operator defined which takes a right-hand operand of type '__int64' (or there i... 阅读全文
posted @ 2014-08-04 15:05 蓝空 阅读(2341) 评论(0) 推荐(0) 编辑
摘要:
Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ... 阅读全文
posted @ 2014-08-04 14:36 蓝空 阅读(182) 评论(0) 推荐(0) 编辑
摘要:
Description Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happe... 阅读全文
posted @ 2014-08-03 15:05 蓝空 阅读(164) 评论(0) 推荐(0) 编辑
摘要:
Description Figure 1 Figure 1 shows a graphical representation of a binary tree of letters. People familiar with binary trees can skip over th... 阅读全文
posted @ 2014-08-01 14:07 蓝空 阅读(274) 评论(0) 推荐(0) 编辑
摘要:
Description Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with cap... 阅读全文
posted @ 2014-07-31 11:21 蓝空 阅读(226) 评论(0) 推荐(0) 编辑
摘要:
关于scanf返回值 检举 void main(){int a,b,c; c=scanf("%d %d",&a,&b); printf("%d",c); } 为什么我输入a 1 , c的值就为0,输入1 a,c的值为1 scanf返回接收到的变量值的个数。 ... 阅读全文
posted @ 2014-07-31 10:39 蓝空 阅读(170) 评论(0) 推荐(0) 编辑
摘要:
Description Trees have many applications in computer science. Perhaps the most commonly used trees are rooted binary trees, but there are othe... 阅读全文
posted @ 2014-07-30 19:07 蓝空 阅读(489) 评论(0) 推荐(0) 编辑