摘要: DescriptionHow many zeros are there in the end ofs!if bothsands!are written in basekwhich is not necessarily to be 10? For general base, the digit order is 0-9,A-Z,a-z(increasingly), for example F4 in base 46 is actually 694 in base 10,and f4 in base 46 is 1890 in base 10.InputThere are multiple cas 阅读全文
posted @ 2013-11-23 21:29 persistent codeants 阅读(328) 评论(0) 推荐(0)
摘要: DescriptionAkiba is a dangerous country since a bloodsucker living there. Sometimes the bloodsucker will appear and kill everyone who isn't at his hometown. One day, a brave person named CC finds a treasure map, and he wants to get as much as possible.Akiba consists ofntowns andn-1roads. There i 阅读全文
posted @ 2013-11-23 16:47 persistent codeants 阅读(198) 评论(0) 推荐(0)
摘要: DescriptionThere arencities(1,2, ... ,n) forming a line on the wonderland. cityiand cityi+1are adjacent and their distance is 1. Each city has many gold coins. Now, Alice and her friend Bob make a team to go treasure hunting. They starts at cityp, and they want to get as many gold coins as possible 阅读全文
posted @ 2013-11-23 11:04 persistent codeants 阅读(257) 评论(0) 推荐(0)