上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页
摘要: Magic Squares 魔板描述在成功地发明了魔方之后,拉比克先生发明了它的二维版本,称作魔板。这是一张有8个大小相同的格子的魔板:1 2 3 4 8 7 6 5我们知道魔板的每一个方格都有一种颜色。这8种颜色用前8个正整数来表示。可以用颜色的序列来表示一种魔板状态,规定从魔板的左上角开始,沿顺时针方向依次取出整数,构成一个颜色序列。对于上图的魔板状态,我们用序列(1,2,3,4... 阅读全文
posted @ 2009-09-24 09:45 jesonpeng 阅读(369) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/raulliubo/blog/item/21a2ae8f998408eef11f3629.html 学了一段时间OI,感觉DP学不透。。。。转个贴来激励自己 给定两个序列 X = { x1 , x2 , ... , xm } Y = { y1 , y2 , ... , yn } 求X和Y的一个最长公共子序列 举例 X = { a , b , c , b ... 阅读全文
posted @ 2009-01-04 13:04 jesonpeng 阅读(524) 评论(0) 推荐(0) 编辑
摘要: section1.1 the next problem is Greedy Gift Givers A group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money. Each of these friends might or might not give some money to... 阅读全文
posted @ 2009-01-04 13:03 jesonpeng 阅读(272) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/raulliubo/blog/item/356d8aef929862efce1b3eb8.html Friday the Thirteenth Is Friday the 13th really an unusual event? That is, does the 13th of the month land on a Friday less of... 阅读全文
posted @ 2009-01-04 13:02 jesonpeng 阅读(193) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/raulliubo/blog/item/aea59710d589fc01213f2eba.html Broken Necklace You have a necklace of N red, white, or blue beads (3s[j]) and (s[j]' ') then break; inc(s1); end; s2:=0;... 阅读全文
posted @ 2009-01-04 13:01 jesonpeng 阅读(246) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 26 下一页