PeekMessage函数:先看看MSDN怎么说:PeekMessage
functionDispatches incoming sent messages, checks the thread message queue for a
posted message, and retrieves th...
分类:
其他好文 时间:
2014-05-30 04:29:06
阅读次数:
254
http://blog.chinaunix.net/uid-23577393-id-1751983.htmlTo
count how often any pattern occurs in the current buffer use the
substitutecommand and add th...
分类:
其他好文 时间:
2014-05-29 17:37:03
阅读次数:
217
GBK: create database test2 DEFAULT CHARACTER SET
gbk COLLATE gbk_chinese_ci;UTF8: CREATE DATABASE `test2` DEFAULT CHARACTER SET
utf8 COLLATE utf8_gene...
分类:
数据库 时间:
2014-05-29 03:39:08
阅读次数:
306
.box {/*非IE6、IE7的主流浏览器识别的垂直居中的方法*/display:
table-cell;
//设置了这个属性之后,此元素会做为一个表格单元格显示,类似th、td,margin属性将不起作用vertical-align:middle;/*
针对IE6、IE7的Hack */*d.....
分类:
其他好文 时间:
2014-05-27 16:08:20
阅读次数:
321
vim在win下遇到汉字乱码早就知晓,本以为通过如下设置即可解决乱码问题 set
encoding=utf-8 set fileencoding=utf-8,chinese
这样设置是可以解决源码文件中的中文乱码问题但是菜单栏此时就变成了乱码, 肿么办? 网上查一解决方案 ,果断可行,摘录如下: s...
Problem Description
Today is Yukari's n-th birthday. Ran and Chen hold a celebration party for her. Now comes the most important part, birthday cake! But it's a big challenge for them to place n ca...
分类:
其他好文 时间:
2014-05-26 04:38:35
阅读次数:
239
题目:2520 is the smallest number that can be
divided by each of the numbers from 1 to 10 without any remainder.What is the
smallest positive number that...
分类:
其他好文 时间:
2014-05-26 02:12:53
阅读次数:
167
Kuriyama Mirai has killed many monsters and got many (namely n) stones. She numbers the stones from 1 to n.
The cost of the i-th stone is vi.
Kuriyama Mirai wants to know something about these sto...
分类:
其他好文 时间:
2014-05-25 07:24:48
阅读次数:
315
点击打开链接
题意:
集合S支持一下四种操作:
INSERT(S,x) : 如果S中没有x,则插入x
DELETE(S,x): 如果S中有x,则删除x
K-TH(S): 输出S中第K小的数
COUNT(S,x): 统计S中小于x的数有多少个
一共有Q(1 ≤ Q ≤ 200000)次操作。
Treap模板。。
#i...
分类:
其他好文 时间:
2014-05-24 18:03:11
阅读次数:
213