摘要: Polycarp has nn coins, the value of the ii-th coin is aiai. It is guaranteed that all the values are integer powers of 22 (i.e. ai=2dai=2d for some no 阅读全文
posted @ 2018-07-29 16:40 Daybreaking 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in th 阅读全文
posted @ 2018-07-29 11:04 Daybreaking 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this 阅读全文
posted @ 2018-07-29 10:42 Daybreaking 阅读(132) 评论(0) 推荐(0) 编辑
摘要: The company "21st Century Fruits" has specialized in creating new sorts of fruits by transferring genes from one fruit into the genome of another one. 阅读全文
posted @ 2018-07-29 09:57 Daybreaking 阅读(144) 评论(0) 推荐(0) 编辑