摘要: 传送门DescriptionA kingdom has n cities numbered 1 to n, and some bidirectional roads connecting cities. The capital is always city 1.After a war, all th... 阅读全文
posted @ 2015-08-14 19:01 Pat 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 传送门Time Limit:5000MSMemory Limit:65536KB64bit IO Format:%lld & %lluDescription在一个奇怪的村子中,很多人的名字都很长,比如aaaaa, bbb and abababab。名字这么长,叫全名显然起来很不方便。所以村民之间一般... 阅读全文
posted @ 2015-08-14 17:24 Pat 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 传送门Time Limit:1000MSMemory Limit:131072KB64bit IO Format:%lld & %lluDescriptionIn this problem, a dictionary is collection of key-value pairs, where k... 阅读全文
posted @ 2015-08-14 15:22 Pat 阅读(167) 评论(0) 推荐(0) 编辑