摘要: 题目描述 春春幼儿园举办了一年一度的“积木大赛”。今年比赛的内容是搭建一座宽度为n的大厦,大厦可以看成由n块宽度为1的积木组成,第i块积木的最终高度需要是hi。 在搭建开始之前,没有任何积木(可以看成n块高度为 0 的积木)。接下来每次操作,小朋友们可以选择一段连续区间[l, r],然后将第第 L 阅读全文
posted @ 2017-10-01 20:54 yodel 阅读(541) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-10-01 09:41 yodel 阅读(23293) 评论(9) 推荐(14)
摘要: 关于遗传算法 遗传算法的有趣应用很多,诸如寻路问题,8数码问题,囚犯困境,动作控制,找圆心问题(这是一个国外网友的建议:在一个不规则的多边形 中,寻找一个包含在该多边形内的最大圆圈的圆心。),TSP问题(在以后的章节里面将做详细介绍。),生产调度问题,人工生命模拟等。直到最后看到一个非 常有趣的比喻 阅读全文
posted @ 2017-09-24 17:29 yodel 阅读(1442) 评论(0) 推荐(0)
摘要: 1.首先下载lemon 下载地址:http://pan.baidu.com/s/1hrYgcYS 密码:ke8a 2.解压lemon: 3.打开lemon的源目录 4:双击打开lemon 5:选中自己需要的编译器: gcc:c g++:c++ fpc:pascal fbc:basic jdk:jav 阅读全文
posted @ 2017-09-16 14:39 yodel 阅读(4124) 评论(0) 推荐(0)
摘要: CCT 最近学校又发了n本五三题霸,BBS看到后十分高兴。但是,当他把五三拿到手后才发现,他已经刷过这些书了!他又认真地看了一会儿,发现新发的这些五三是2017版的,而他刷的是2016版的。现在他想找出所有他没有刷过的题来刷。每本五三都有m道题,并且它的特征(即它和去年版本的五三的差距)可以用一个m 阅读全文
posted @ 2017-09-16 12:20 yodel 阅读(154) 评论(0) 推荐(0)
摘要: 2118: 卡片 题目描述 lrb喜欢玩卡牌。他手上现在有张牌,每张牌的颜色为红绿蓝中的一种。现在他有两种操作。一是可以将两张任意位置的不同色的牌换成一张第三种颜色的牌;二是可以将任意位置的两张相同颜色的牌换成一张该颜色的牌。两个操作后都可以将生成的牌放到任意位置。现在他想知道,最后一张牌可能是什么 阅读全文
posted @ 2017-09-09 22:36 yodel 阅读(172) 评论(0) 推荐(0)
摘要: Template is very important. Maybe someone always mark a wrong template or mark a long template. Maybe someone always thinks that his template has a ve 阅读全文
posted @ 2017-07-30 20:02 yodel 阅读(207) 评论(1) 推荐(0)
摘要: Treblecross is a two player game where the goal is to get three ‘X’ in a row on a one-dimensional board.At the start of the game all cells in the boar 阅读全文
posted @ 2017-07-12 11:40 yodel 阅读(286) 评论(0) 推荐(0)
摘要: In deterministic games no chance is involved, meaning that the final result can be predicted from theinitial arrangement assuming players play optimal 阅读全文
posted @ 2017-07-11 10:52 yodel 阅读(443) 评论(0) 推荐(0)
摘要: Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5858 Accepted: 3649 Description Alice and Bob decide to play a funny game. At the beginning 阅读全文
posted @ 2017-07-11 10:19 yodel 阅读(351) 评论(0) 推荐(0)