
greedy
conquerheaven
这个作者很懒,什么都没留下…
展开
-
uva 10716 - Evil Straw Warts Live(greedy)
Problem D: Evil Straw Warts LiveA palindrome is a string of symbols that is equal to itself when reversed. Given an input string, not necessarily a palindrome, compute the number of swaps necessary原创 2014-03-11 14:02:06 · 935 阅读 · 0 评论 -
uva 11649 - Home! Sweet Home!(贪心+优先队列)
DHome! Sweet Home!Input: Standard InputOutput: Standard Output Own home is the sweetest place if it is really secured. People build wall around home to make their home原创 2014-03-28 22:57:30 · 930 阅读 · 0 评论 -
uva 11368 - Nested Dolls(sort+greedy+binary_search)
G: Nested Dolls Dilworth is the world's most prominent collector of Russian nested dolls: he literally has thousands of them! You know, the wooden hollow dolls of different sizes of which原创 2014-03-25 13:37:53 · 2275 阅读 · 0 评论