上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: Eight-puzzle, which is also called "Nine grids", comes from an old game. In this game, you are given a 3 by 3 board and 8 tiles. The tiles are numbere 阅读全文
posted @ 2018-01-25 17:04 晓风微微 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 不保证没有BUG...... 效果: 阅读全文
posted @ 2018-01-23 11:48 晓风微微 阅读(817) 评论(0) 推荐(0) 编辑
摘要: You are given n segments on a line. There are no ends of some segments that coincide. For each segment find the number of segments it contains. Input 阅读全文
posted @ 2018-01-22 19:31 晓风微微 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 这是一个简单的生存游戏,你控制一个机器人从一个棋盘的起始点(1,1)走到棋盘的终点(n,m)。游戏的规则描述如下: 1.机器人一开始在棋盘的起始点并有起始点所标有的能量。 2.机器人只能向右或者向下走,并且每走一步消耗一单位能量。 3.机器人不能在原地停留。 4.当机器人选择了一条可行路径后,当他走 阅读全文
posted @ 2018-01-22 19:10 晓风微微 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/67/G来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C 阅读全文
posted @ 2018-01-21 18:01 晓风微微 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 第一题:数塔 HDU - 2084 做法: 从第 i , j 个 节点往下走的最优解可以由从第 i+1,j 个节点往下走的最优解和第i+1,j+1个节点往下走的最优解得出,二者取其优即可。 代码: 记忆化搜素 递推代码: 第二题:超级楼梯 来源:HDU - 2041 转态转移方程 f[i]=f[i- 阅读全文
posted @ 2018-01-21 11:29 晓风微微 阅读(419) 评论(0) 推荐(0) 编辑
摘要: Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones. Your task is counting the segme 阅读全文
posted @ 2018-01-19 17:56 晓风微微 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Mayor's posters Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 71507 Accepted: 20632 Description The citizens of Bytetown, AB, could not s 阅读全文
posted @ 2018-01-19 10:57 晓风微微 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Lesha plays the recently published new version of the legendary game hacknet. In this version character skill mechanism was introduced. Now, each play 阅读全文
posted @ 2017-12-06 10:27 晓风微微 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 题目描述 在上海 阅读全文
posted @ 2017-12-02 10:57 晓风微微 阅读(391) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页