摘要: http://poj.org/problem?id=3250Bad Hair DayTime Limit:2000MSMemory Limit:65536KTotal Submissions:11473Accepted:3871DescriptionSome of Farmer John'sNcows (1 ≤N≤ 80,000) are having a bad hair day! Since each cow is self-conscious about her messy hairstyle, FJ wants to count the number of other cows 阅读全文
posted @ 2013-07-23 22:23 crazy_apple 阅读(413) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2559Largest Rectangle in a HistogramTime Limit:1000MSMemory Limit:65536KTotal Submissions:12297Accepted:3974DescriptionA histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different height 阅读全文
posted @ 2013-07-23 19:44 crazy_apple 阅读(1333) 评论(1) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2406Power StringsTime Limit:3000MSMemory Limit:65536KTotal Submissions:27003Accepted:11311DescriptionGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of 阅读全文
posted @ 2013-07-23 16:39 crazy_apple 阅读(254) 评论(0) 推荐(0) 编辑