摘要: DescriptionN cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated with it : the road length and the toll that needs to be paid for the road (expressed in the number of coins).Bob and Alice used to live in the city 1. After noticing that Alice wa 阅读全文
posted @ 2013-06-19 17:17 HappyPKU 阅读(201) 评论(0) 推荐(0)
摘要: DescriptionA sequence of positive integers is Palindromic if it reads the same forward and backward. For example:23 11 15 1 37 37 1 15 11 231 1 2 3 4 7 7 10 7 7 4 3 2 1 1A Palindromic sequence is Unimodal Palindromic if the values do not decrease up to the middle value and then (since the sequence i 阅读全文
posted @ 2013-06-19 10:34 HappyPKU 阅读(337) 评论(0) 推荐(0)