摘要: 寻找割边又叫桥。 和找割点的很类似Burning BridgesTime Limit:5 Seconds Memory Limit:32768 KBFerry Kingdom is a nice little country located on N islands that are connected by M bridges. All bridges are very beautiful and are loved by everyone in the kingdom. Of course, the system of bridges is designed in such a way t 阅读全文
posted @ 2013-05-15 13:46 chenhuan001 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 挺有意思的题。思路不难, 用hash判重, 但是要坑人的是一开始怎么将每串序列按照同一规律排列。比如2 1 2 1 1 2 1 1 2 2 1 2怎么转化为 1 1 2 2 1 2 ,也就是转化为字典序最小, 最后没有办法只有枚举, 3000+ms 险过.Snowflake Snow SnowflakesTime Limit:4000MSMemory Limit:65536KTotal Submissions:26254Accepted:6900DescriptionYou may have heard that no two snowflakes are alike. Your task i 阅读全文
posted @ 2013-05-15 00:05 chenhuan001 阅读(202) 评论(0) 推荐(0) 编辑