随笔分类 -  并查集

摘要:B. Mr. Kitayuta's Colorful Graphtime limit per test1 secondMr. Kitayuta has just bought an undirected graph consisting of n vertices and m edges. The ... 阅读全文
posted @ 2015-01-21 20:58 daydaycode 阅读(168) 评论(0) 推荐(0)
摘要:食物链Time Limit:1000MSMemory Limit:10000KTotal Submissions:43846Accepted:12773Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。现有N个动物,以1-N编号。每个... 阅读全文
posted @ 2014-07-21 23:04 daydaycode 阅读(384) 评论(0) 推荐(0)
摘要:Time Limit:2000MSMemory Limit:30000KTotal Submissions:18514Accepted:6426Case Time Limit:1000MSDescriptionFarmer John and Betsy are playing a game with... 阅读全文
posted @ 2014-07-21 19:45 daydaycode 阅读(184) 评论(0) 推荐(0)
摘要:DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Ga... 阅读全文
posted @ 2014-06-01 16:13 daydaycode 阅读(181) 评论(0) 推荐(0)