2015年9月15日

棋盘覆盖问题

摘要: 1 #include 2 using namespace std; 3 #define MAX 1024 4 int a[MAX][MAX]; 5 int num=1; 6 void solve(int fromx,int fromy,int x,int y,int size) 7 { 8 ... 阅读全文

posted @ 2015-09-15 17:10 天空中最亮的小星星 阅读(123) 评论(0) 推荐(0) 编辑

2015年9月14日

循环赛日程表

摘要: 1 #include 2 using namespace std; 3 #define MAX 100 4 int a[MAX][MAX]; 5 void copy(int fx,int fy,int tx,int ty,int r) 6 { 7 int i,j; 8 for(i=... 阅读全文

posted @ 2015-09-14 14:27 天空中最亮的小星星 阅读(197) 评论(0) 推荐(0) 编辑

集合的全排列问题

摘要: 1 #include 2 using namespace std; 3 int from,to; 4 void perm(int list[],int k,int m) 5 { 6 int j; 7 if(k==m) 8 { 9 for(j=from-1;j... 阅读全文

posted @ 2015-09-14 10:03 天空中最亮的小星星 阅读(295) 评论(0) 推荐(0) 编辑

2015年9月12日

zoj 1828 Fibonacci Numbers

摘要: ZOJ Problem Set - 1828Fibonacci NumbersTime Limit:2 Seconds Memory Limit:65536 KBA Fibonacci sequence is calculated by adding the previous two members... 阅读全文

posted @ 2015-09-12 16:26 天空中最亮的小星星 阅读(236) 评论(0) 推荐(0) 编辑

2015年9月11日

zoj 2954 Hanoi Tower

摘要: 题目描述:Hanoi TowerTime Limit:2 Seconds Memory Limit:65536 KBYou all must know the puzzle named "The Towers of Hanoi". The puzzle has three pegs (peg 1, ... 阅读全文

posted @ 2015-09-11 10:20 天空中最亮的小星星 阅读(283) 评论(0) 推荐(0) 编辑

2015年9月10日

zoj 1239 Hanoi Tower Troubles Again!

摘要: Hanoi Tower Troubles Again!Time Limit:2 Seconds Memory Limit:65536 KBPeople stopped moving discs from peg to peg after they know the number of steps n... 阅读全文

posted @ 2015-09-10 17:16 天空中最亮的小星星 阅读(334) 评论(0) 推荐(0) 编辑

导航