
搜索
你倒是敲代码啊.
韶光易逝,劝君惜取少年时。
展开
-
uva1631-Locker(记忆化搜索)
DescriptionA password locker with N digits, each digit can be rotated to 0-9 circularly.You can rotate 1-3 consecutive digits up or down in one step.For examples:567890 → 567901 (by rotating the l...原创 2020-01-21 12:36:41 · 537 阅读 · 0 评论 -
Free Candies UVA - 10118(记忆化搜索)
DescriptionLittle Bob is playing a game. He wants to win some candies in it - as many as possible.There are 4 piles, each pile contains N candies. Bob is given a basket which can hold at most 5 cand...原创 2020-01-17 13:43:09 · 206 阅读 · 0 评论 -
命运 HDU - 2571
Description穿过幽谷意味着离大魔王lemon已经无限接近了!可谁能想到,yifenfei在斩杀了一些虾兵蟹将后,却再次面临命运大迷宫的考验,这是魔王lemon设下的又一个机关。要知道,不论何人,若在迷宫中被困1小时以上,则必死无疑!可怜的yifenfei为了去救MM,义无返顾地跳进了迷宫。让我们一起帮帮执着的他吧!命运大迷宫可以看成是一个两维的方格阵列,如下图所示:yifen...原创 2020-01-01 14:26:11 · 196 阅读 · 0 评论 -
HDU - 1078(FatMouse and Cheese)(记忆化搜索)
题目大意:给你一个n*n的方格,每个格子上标有数字,你每次最多移动k个格子,并且只能一直沿着上下左右四个方向中的一个方向移动,问移动路线上所做停留点的数字之和最大是多少。问题分析:我们用dp+搜索的思路来解决这个问题,dp[x][y]表示从(x,y)点出发能够得到的最大和,那么我假设现在dp[x][y]的最大值已经知道,那么我只要走到(x,y)这里就不用再往后走了,因为最大值我已经知道...原创 2019-08-20 15:02:01 · 225 阅读 · 0 评论