poj 2492 纪念下九月份AC的第一道题----并查集----有点重口味
摘要:
Background
Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gender. In his experiment, individual bugs and their interactions were easy to identify, because numbers were printed on their backs.
Problem
Given a list of bug interactions, decide whether the experiment supports his assumption of two genders with no homosexual bugs or if it contains some bug int 阅读全文
posted @ 2011-09-15 22:24 ACShiryu 阅读(1580) 评论(0) 推荐(1) 编辑