暴力枚举
胆识与智慧
在探索中成长
展开
-
CodeForces-699B One Bomb 暴力搜索
One Bomb题目描述:You are given a description of a depot. It is a rectangular checkered field of n × msize. Each cell in a field can be empty (".") or it can be occupied by a wall ("*").You have原创 2018-01-30 23:15:05 · 217 阅读 · 0 评论 -
POJ 2739 Sum of Consecutive Prime Numbers 暴力枚举+素数判断
Sum of Consecutive Prime Numbers 题目描述Some positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive integer have? For...原创 2018-01-31 10:37:12 · 360 阅读 · 0 评论 -
POJ 1088 滑雪 排序后 dp 或者 记忆化搜索 两种写法
题目描述:Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 516 17 18 19 615 24 25 20 714 23 22原创 2018-01-31 22:25:30 · 251 阅读 · 0 评论