Problem DescriptionWangpeng is good at drawing. Now he wants to say numbers like “521” to his girlfriend through the game draw something.Wangpeng can’...
分类:
其他好文 时间:
2014-07-19 18:24:12
阅读次数:
205
以select_type为线索:1) SIMPLE:简单的SELECT,不实用UNION或者子查询mysql> explain select * from t2;+----+-------------+-------+------+---------------+------+---------+-...
分类:
数据库 时间:
2014-07-19 14:29:10
阅读次数:
285
There are two identical boxes. One of them contains n balls, while the other box contains one ball. Alice and Bob invented a game with the boxes and b...
分类:
其他好文 时间:
2014-07-19 14:25:51
阅读次数:
228
There arenpeople standing in a line, playing a famous game called ``counting". When the game begins, the leftmost person says ``1" loudly, then the se...
分类:
其他好文 时间:
2014-07-19 11:33:34
阅读次数:
383
比赛的时候这道题卡了大半时间,虽然说其他题目也挺多不会的。昨天一直觉得自己代码是没问题的,今早起来想想,可能是题意读错了,特意去看了一遍中文题意,恍然大悟。第一:题意为只要 “含7的,或是7的倍数” 就拍手,比赛时被看成了尾数是7就拍手。第二:今早交一次又WA了,原因是判断每位数是不是7的地方出了问...
分类:
其他好文 时间:
2014-07-19 11:30:50
阅读次数:
271
https://github.com/rest-client/rest-clienthttps://github.com/jnunemaker/httpartyhttp://ruby-doc.org/stdlib-2.1.2/libdoc/net/http/rdoc/Net/HTTP.htmlhtt...
分类:
数据库 时间:
2014-07-19 09:30:02
阅读次数:
398
Douglas Crockford classified the "class methods" in JavaScript into three types:
private, privileged and public.
Public methods have an obvious meaning: they can be accessed by the public.
Priv...
分类:
编程语言 时间:
2014-07-19 02:31:05
阅读次数:
282
Counting Game There are n people standing in a line, playing a famous game called ``counting". When the game begins, the leftmost person says ``1" lo....
分类:
其他好文 时间:
2014-07-19 00:20:58
阅读次数:
245
A simple 1D searching problem. Binary search of course.But.. STL has already done it for you:class Solution {public: int searchInsert(int A[], int ...
分类:
其他好文 时间:
2014-07-18 18:35:41
阅读次数:
205
DescriptionYou haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each ...
分类:
其他好文 时间:
2014-07-18 18:22:11
阅读次数:
263