hdu 5241 Friends(找规律?)
Friends Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1350 Accepted Submission(s): 634 Problem Description Mike has many friends. Here are nine of them: Alice, Bob, Carol, Dave, Eve, Frank, Gloria, Henry and Irene. Mike is so skillful that he can master n languages (aka. programming languages). His nine friends are all weaker than he. The sets they can master are all subsets of Mike's languages. But the relations between the nine friends is very complex. Here are some clues. 1. Alice is a nice girl, so her subset is a superset of Bob's.