摘要:
http://acm.hust.edu.cn/vjudge/contest/view.action?cid=27306#rank
阅读全文
posted @ 2013-08-02 09:49
goto码农
阅读(187)
推荐(0)
摘要:
KnightMoveshttp://acm.hdu.edu.cn/showproblem.php?pid=1372 Bywanglong3062013/6/5TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):4653AcceptedSubmission(s):2857ProblemDescriptionAfriendofyouisdoingresearchontheTravelingKnightProblem(TKP)whereyouaretofindthesho.
阅读全文
posted @ 2013-06-05 22:19
goto码农
阅读(186)
推荐(0)
摘要:
POJ3278:CatchThatCowhttp://poj.org/problem?id=3278 Bywanglong3062013/5/14TimeLimit:2000MSMemoryLimit:65536KTotalSubmissions:35565Accepted:10974DescriptionFarmerJohnhasbeeninformedofthelocationofafugitivecowandwantstocatchherimmediately.HestartsatapointN(0≤N≤100,000)onanumberlineandthecowisatapointK(
阅读全文
posted @ 2013-06-05 20:47
goto码农
阅读(211)
推荐(0)
摘要:
#include "stdio.h"#include "math.h"#include "stdlib.h"#include "conio.h"#define N 8int count = 0;int x[N] = {0};int place(int k)//判断是否符合要求;{ int j; for (j = 0; j < k; j++) { if ((abs(k - j) == abs(x[j] - x[k])) || (x[j] == x[k])) return 0; } return 1;}void
阅读全文
posted @ 2013-06-05 20:33
goto码农
阅读(232)
推荐(0)
摘要:
百题oj2754:八皇后 http://poj.grids.cn/practice/2754/查看 提交 统计 提示 提问总时间限制: 1000ms 内存限制: 65536kB描述会下国际象棋的人都很清楚:皇后可以在横、竖、斜线上不限步数地吃掉其他棋子。如何将8个皇后放在棋盘上(有8 * 8个方格),使它们谁也不能被吃掉!这就是著名的八皇后问题。 对于某个满足要求的8皇后的摆放方法,定义一个皇后串a与之对应,即a=b1b2...b8,其中bi为相应摆法中第i行皇后所处的列数。已经知道8皇后问题一共有92组解(即92个不同的皇后串)。给出一个数b,要求输出第b个串。串的比较是这样的:皇后串x置于
阅读全文
posted @ 2013-06-05 20:18
goto码农
阅读(330)
推荐(0)
摘要:
A、INEEDAOFFER!TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):11521AcceptedSubmission(s):4393ProblemDescriptionSpeakless很早就想出国,现在他已经考完了所有需要的考试,准备了所有要准备的材料,于是,便需要去申请学校了。要申请国外的任何大学,你都要交纳一定的申请费用,这可是很惊人的。Speakless没有多少钱,总共只攒了n万美元。他将在m个学校中选择若干的(当然要在他的经济承受范围内)。每个学校
阅读全文
posted @ 2013-04-30 19:57
goto码农
阅读(133)
推荐(0)
摘要:
2013-4-17 14:37大学开始快一年了,感觉挺迷茫颓废的,这个也不奇怪,从有了自己的第一部Mobile photo到有了PC,也挺兴奋的天天。专业课学得是一塌糊涂,不能再这样下去了。大一都快结束了,该好好学习了。从今后,好好学习,学好自己的专业课,做个合格的ACMer!!!
阅读全文
posted @ 2013-04-27 15:05
goto码农
阅读(73)
推荐(0)