hdu 1016 Prime Ring Problem
Problem Description
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.
原创
2016-03-17 21:12:19 ·
344 阅读 ·
0 评论