
模拟
_Gray
这个作者很懒,什么都没留下…
展开
-
1122 Hamiltonian Cycle (25 分)
The "Hamilton cycle problem" is to find a simple cycle that contains every vertex in a graph. Such a cycle is called a "Hamiltonian cycle". In this problem, you are supposed to tell if a given cycle ...原创 2019-01-18 20:20:03 · 149 阅读 · 0 评论 -
1137 Final Grading (25 分)
For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no less than 200 points from...原创 2019-01-24 18:38:49 · 174 阅读 · 0 评论 -
1128 N Queens Puzzle (20 分)
The "eight queens puzzle" is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, ...原创 2019-01-19 22:11:26 · 217 阅读 · 0 评论 -
1109 Group Photo (25 分)
Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in each row must be N/K (round down to the nearest inte...原创 2019-01-14 23:24:51 · 267 阅读 · 0 评论 -
1129 Recommendation System (25 分)
Recommendation system predicts the preference that a user would give to an item. Now you are asked to program a very simple recommendation system that rates the user's preference by the number of time...原创 2019-01-20 22:14:18 · 216 阅读 · 0 评论