
枚举与搜索
rainbowsea_1
难得有了目标,怎么可以还是烂人一条!
展开
-
Hopscotch POJ - 3050(dfs)
Hopscotch POJ - 3050The cows play the child’s game of hopscotch in a non-traditional way. Instead of a linear set of numbered boxes into which to hop, the cows create a 5x5 rectilinear grid of digits...原创 2020-03-27 20:52:35 · 129 阅读 · 0 评论 -
Backward Digit Sums POJ - 3187
Backward Digit Sums POJ - 3187FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 <= N <= 10) in a certain order and then sum adjacent numbers to produce a n...原创 2020-03-27 09:51:26 · 164 阅读 · 1 评论 -
Meteor Shower POJ - 3669(dfs)
Meteor Shower POJ - 3669Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything they hit. Anxious for her safety, she vow...原创 2020-03-27 09:42:09 · 178 阅读 · 0 评论 -
Smallest Difference POJ - 2718
Smallest Difference POJ - 2718Given a number of distinct decimal digits, you can form one integer by choosing a non-empty subset of these digits and writing them in some order. The remaining digits c...原创 2020-03-27 09:29:06 · 147 阅读 · 0 评论 -
Curling 2.0 POJ - 3009(dfs)
Curling 2.0 POJ - 3009On Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board on whic...原创 2020-03-27 09:16:20 · 202 阅读 · 0 评论 -
Red and Black POJ - 1979(dfs)
Red and Black POJ - 1979There 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 ad...原创 2020-03-27 08:37:06 · 100 阅读 · 0 评论