摘要: 接触到个不错的网站:http://www.codechef.com/有空研究下 阅读全文
posted @ 2012-11-26 18:42 zhang1107 阅读(128) 评论(0) 推荐(0) 编辑
摘要: View Code 1 “Do not spend all your time on training or studying – this way you will probably become very exhausted and unwilling to compete more. Whatever you do – have fun. Once you find programming is no fun anymore – drop it. Play soccer, find a girlfriend, study something not related to programm 阅读全文
posted @ 2012-11-26 18:33 zhang1107 阅读(181) 评论(0) 推荐(0) 编辑
摘要: JTrim the NailsBFS()乱搞fingernail记为goal(1<<M-1)M位的1。nail clipper记录正串和反串的状态,从初始状态搜索到变为0为最小的步数。状态压缩DP从最开始的goal,进过修减,goal变的越来越小,符合无后效性,每步记录最小。 阅读全文
posted @ 2012-11-26 14:24 zhang1107 阅读(152) 评论(0) 推荐(0) 编辑