DFS
Luuuuyang
这个作者很懒,什么都没留下…
展开
-
HDU1312 Red and Black
Promblem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjac...原创 2019-01-24 17:27:43 · 161 阅读 · 0 评论 -
HDU1016 Prime Ring Problem
Promblem 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....原创 2019-01-24 17:30:37 · 165 阅读 · 0 评论 -
NYOJ 20 吝啬的国度
题目描述: 在一个吝啬的国度里有个城市,这个城市间只有条路把这个个城市连接起来。现在,Tom在第号城市,他有张该国地图,他想知道如果自己要去参观第号城市,必须经过的前一个城市是几号城市(假设你不走重复的路)。 输入描述: 第一行输入一个整数M表示测试数据共有M(1<=M<=5)组 每组测试数据的第一行输入一个正整数N(1<=N<=100000)和一个正整数S(1&l...原创 2019-01-26 17:38:36 · 212 阅读 · 0 评论 -
FZU 1920 Left Mouse Button
Problem Description Mine sweeper is a very popular small game in Windows operating system. The object of the game is to find mines, and mark them out. You mark them by clicking your right mouse butto...原创 2019-01-27 18:26:37 · 209 阅读 · 0 评论