搜索资源列表
Match
- 有N男N女,每个人都按照他对异性的喜欢程度排名。现在需要写出一个算法安排这N个男的、N个女的结婚,要求两个人的婚姻应该是稳定的。-There are N M N M, and everyone ranked according to the extent of his love for the opposite sex. Now you need to write an algorithm to arrange a male N, N-woman marriage, marriage requi