A Bug's Life
Time Limit: 10000MS
Memory Limit: 65536K
Total Submissions: 29209
Accepted: 9528
Description
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, de......
阅读全文