摘要: Frank N. Stein is a very conservative high-school teacher. He wants to take some of his students on an excursion, but he is afraid that some of them might become couples. While you can never exclude this possibility, he has made some rules that he thinks indicates a low probability two persons will 阅读全文
posted @ 2013-09-14 02:25 Ramanujan 阅读(337) 评论(0) 推荐(0) 编辑
摘要: A technique used in early multiprogramming operating systems involved partitioning the available primary memory into a number of regions with each region having a fixed size, different regions potentially having different sizes. The sum of the sizes of all regions equals the size of the primary memo 阅读全文
posted @ 2013-09-14 02:17 Ramanujan 阅读(744) 评论(0) 推荐(0) 编辑
摘要: Problem I – Ladies’ ChoiceBackgroundTeenagers from the local high school have asked you to help them with the organization of next year’s Prom. The idea is to find a suitable date for everyone in the class in a fair and civilized way. So, they have organized a web site where all students, boys and g 阅读全文
posted @ 2013-09-14 02:12 Ramanujan 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Marriage is StableTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 438Accepted Submission(s): 257Special JudgeProblem DescriptionAlbert, Brad, Chuck are happy bachelors who are in love with Laura, Marcy, Nancy. They all have three choices. But in fa 阅读全文
posted @ 2013-09-14 02:09 Ramanujan 阅读(738) 评论(0) 推荐(0) 编辑