http://pre.ac.nowcoder.com/acm/problem/blogs/52041