上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: Problem Description A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight m 阅读全文
posted @ 2016-05-28 15:12 邻家那小孩儿 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Problem Description Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会.魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位 阅读全文
posted @ 2016-05-28 13:52 邻家那小孩儿 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Problem Description 呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好是使A物体变成B物体. Harry已 阅读全文
posted @ 2016-05-27 20:36 邻家那小孩儿 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Problem Description Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For examp 阅读全文
posted @ 2016-05-26 15:04 邻家那小孩儿 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Problem Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input 共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量; 阅读全文
posted @ 2016-05-26 13:21 邻家那小孩儿 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Problem Description A while ago I had trouble sleeping. I used to lie awake, staring at the ceiling, for hours and hours. Then one day my grandmother 阅读全文
posted @ 2016-05-25 20:57 邻家那小孩儿 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Problem Description Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? Input The first line of input c 阅读全文
posted @ 2016-05-24 20:48 邻家那小孩儿 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of nu 阅读全文
posted @ 2016-05-22 21:48 邻家那小孩儿 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Problem Description The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, an 阅读全文
posted @ 2016-05-21 22:28 邻家那小孩儿 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Problem Description 还记得Gardon给小希布置的那个作业么?(上次比赛的1005)其实小希已经找回了原来的那张数表,现在她想确认一下她的答案是否正确,但是整个的答案是很庞大的表,小希只想让你把答案中最大的M个数告诉她就可以了。 给定一个包含N(N<=3000)个正整数的序列,每 阅读全文
posted @ 2016-05-21 10:10 邻家那小孩儿 阅读(201) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页