摘要: Wangpeng has N clothes, M pants and K shoes so theoretically he can have N×M×K different combinations of dressing.One day he wears his pants Nike, sho... 阅读全文
posted @ 2015-07-17 21:39 Painting、时光 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Rabbit Tom and rabbit Jerry are running in a field. The field is an N×N grid. Tom starts from the up-left cell and Jerry starts from the down-right ce... 阅读全文
posted @ 2015-07-17 21:37 Painting、时光 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Imagine that you have to prepare a problem set for the forthcoming programming contest and you have already chosen the problems you will use in it. Be... 阅读全文
posted @ 2015-07-17 21:34 Painting、时光 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Side onePoll flew above the City. Bright street lights flashed by below. He was winding his way around needle-sharp spires of communication towers and... 阅读全文
posted @ 2015-07-17 21:16 Painting、时光 阅读(313) 评论(0) 推荐(0) 编辑
摘要: DZY has a sequencea, consisting ofnintegers.We'll call a sequenceai, ai + 1, ..., aj(1 ≤ i ≤ j ≤ n)a subsegment of the sequencea. The value(j - i + 1)... 阅读全文
posted @ 2015-07-17 18:01 Painting、时光 阅读(175) 评论(0) 推荐(0) 编辑