随笔分类 -  并查集

摘要:简单的并查集类似 食物链那道题。 简单一下设a-x, a-y 表示 a属于龙帮和a属于蛇帮,以此来判断从属关系题目:Find them, Catch themTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 27729Accepted: 8453DescriptionThe 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 a 阅读全文
posted @ 2014-02-06 23:24 doubleshik 阅读(254) 评论(0) 推荐(0)