- 博客(6)
- 资源 (4)
- 收藏
- 关注
原创 POJ 1088 滑雪
题目http://poj.org/problem?id=1088思路经典的记忆化搜索:搜索+记忆化搜索:一个一个找,能滑就滑记忆化:优化重复的路径,记录每个点能滑的最远距离(不论从哪里滑倒这里,从这里往下滑行的最远距离是一定的)代码#include const int dx[]={0,0,1,-1};const int dy[]={1,-1,0,
2013-03-23 13:03:02 1049
原创 USACO Section 1.2.5 Palindromic Squares
题目Palindromic SquaresRob KolstadPalindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a number base B (2 <= B <= 20 base 10
2013-03-11 18:15:41 936
原创 USACO Section 1.2.3 Transformations
题目TransformationsA square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum
2013-03-11 16:04:47 999
原创 USACO Section 1.2.4 Name That Number
题目Name That NumberAmong the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers to please the Accounting Department. The cow hands don't appreciate the a
2013-03-05 13:20:17 1110
原创 USACO Section 1.2.2 Milking Cows
题目Milking CowsThree farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and
2013-03-04 22:23:21 1330
原创 USACO Section 1.1.7 Broken Necklace
题目 (由于USACO在外部无法直接访问题库,所以把题目贴上,可以通过上面的目录跳过)Broken NecklaceYou have a necklace of N red, white, or blue beads (3 1 2 1 2
2013-03-04 21:58:18 712
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人