摘要:
最近刷到了一道有趣的DP算法题,是多状态决策的典型例题。就想着记录一下,分享这解题过程给你们,愿你们都有收获。(我写的都很仔细,包括... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(35)
评论(0)
推荐(0)
摘要:
Fire Game 题意:两小儿在平地上有草的地方点火,火向方蔓延,问平地能否烧完,若能,输出最少时间,否则输出-1. 解题思路:... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(76)
评论(0)
推荐(0)
摘要:
Pots 题意:给你两个罐子A和B,你可以进行六种操作,让你求得最少的步骤使得A或B的罐子容量为C。 解题思路:A和B都在动态变化... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(32)
评论(0)
推荐(0)
摘要:
Shuffle’m Up 题意:给定两个长度为n的字符串和一个长度为2n的字符串,长度为n的字符串洗牌形成一个新的字符串。如下:先... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(44)
评论(0)
推荐(0)
摘要:
何总的字符串 题意:就是给定一个字符串找出它的子串是否满足给定的三个条件,输出满足条件的最长子串。 解题思路:既然是要前缀,也是要... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(51)
评论(0)
推荐(0)
摘要:
老丁的序列 题意:序列每天都会复制,但复制方法是每天得到一个以左右两边为原序列中间插入一个序列中没有出现的最小正奇数,让我们求第n... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(42)
评论(0)
推荐(0)
摘要:
Prime Path The ministers of the cabinet were quite upset by the me... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(54)
评论(0)
推荐(0)
摘要:
Find The Multiple Given a positive integer n, write a program to f... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(29)
评论(0)
推荐(0)
摘要:
Catch That Cow Farmer John has been informed of the location of a ... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(30)
评论(0)
推荐(0)
摘要:
Dungeon Master You are trapped in a 3D dungeon and need to find th... 阅读全文
posted @ 2022-03-26 16:52
unique_pursuit
阅读(131)
评论(0)
推荐(0)

浙公网安备 33010602011771号