算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归
DoubleHI-I
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 发放救济金Uva133
In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every day all dole applicants will be placed in a large原创 2016-07-27 14:32:19 · 541 阅读 · 0 评论 -
算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 骰子上色Uva253
We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. The cube's faces are numbered as in Figure 1.原创 2016-07-28 19:46:44 · 469 阅读 · 0 评论 -
算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 师兄帮帮忙 Uva12412
A Typical Homework(a.k.a Shi Xiong Bang Bang Mang) Hi, I am an undergraduate student in institute of foreign languages. As you know, C programming is a required course in our university, even if hi原创 2016-08-03 10:16:41 · 1076 阅读 · 1 评论 -
Uva 1589 象棋
在temp数组中把红方所有棋子能到达的位置标‘1’,最后在黑将能走的地方判断一下有没有没被标‘1’的 没有则被将死。 #include #include using namespace std; char board[10][9]={},temp[10][9]={}; int G_G(int i,int j) { for(int i=7;i<10;i++) {原创 2016-08-07 21:18:08 · 585 阅读 · 4 评论 -
Uva220 Othello
可用Udebug上的测试数据测试下(不全) 1.输出格式注意 程序结束的结尾换行是否有多 2.输出黑白棋子数的时候数字%2d输出 3.边界值注意 4.打印所有合法点的时候两点之间有空格 最有一个点输出没有空格 #include #include #include using namespace std; char board[8][8]={},current; int up(char current,int i,in原创 2016-08-04 15:34:12 · 1341 阅读 · 0 评论
分享