摘要: A thief made his way to a shop.As usual he has his lucky knapsack with him. The knapsack can contain k objects. There are n kinds of p... 阅读全文
posted @ 2016-03-02 18:29 Herumw 阅读(197) 评论(0) 推荐(0) 编辑
摘要: You are given array a with n elements and the number m. Consider some subsequence of a and the value of least common multiple (LCM) of... 阅读全文
posted @ 2016-03-02 15:01 Herumw 阅读(259) 评论(0) 推荐(0) 编辑
摘要: You're given a list of n strings a1, a2, ..., an. You'd like to concatenate them together in some order such that the resulting string... 阅读全文
posted @ 2016-03-02 13:34 Herumw 阅读(163) 评论(0) 推荐(0) 编辑