![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
dfs
文章平均质量分 77
geguojun
天道酬勤
展开
-
Prime Ring Problem(DFS)
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. No原创 2014-07-27 10:36:07 · 327 阅读 · 0 评论 -
Square(DFS)
Description Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? Input The first line of input contains N, the number of test cases.原创 2014-07-27 15:49:03 · 368 阅读 · 0 评论 -
Paid Roads(DFS)
Description A network of m roads connects N cities (numbered from 1 to N). There may be more than one road connecting one city with another. Some of the roads are paid. There are two ways to pay原创 2014-07-29 20:47:37 · 943 阅读 · 0 评论 -
FLIP GAME(DFS)
Description Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lyi原创 2014-07-27 14:44:34 · 479 阅读 · 0 评论 -
Lake Counting(DFS)
Description Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contai原创 2014-07-27 11:28:34 · 350 阅读 · 0 评论