题目链接 174. 地下城游戏 题目分析 今天做题翻车了,从左上角往右下走考虑的cases好多,直接没做出来翻车。后来看了评论区才得出下面的答案。。 我们从右下角开始做会比较容易理解了,dp[i][j]代表进入dungeon[i][j]的地方需要的最小生命值。 我们这个最小生命值其实取决于其(右侧和 ...
分类:
其他好文 时间:
2020-07-12 20:34:11
阅读次数:
59
1.通过路径读取文件/资源 ConstructorHelpers : : FObjectFinder <USkeletalMesh /*类型名*/> objFinder(TEXT("/Game/mesh/.../SK_PlayerMesh" /*路径*/ )); //在这个路径里找SK_M...资源 ...
分类:
编程语言 时间:
2020-07-12 12:30:30
阅读次数:
80
我们先创建一个UserWidget的蓝图,起名BP_Wdiget。 在我们的Wiget蓝图中添加一个Button,并为Button添加一个Click的方法。 方法很简单,当Button被按下的时候,打印"Hello Widget"即可。 创建一个继承自Actor类的自定义类,用于读取和创建UserW ...
分类:
编程语言 时间:
2020-07-12 11:50:26
阅读次数:
173
题意:在集合中挑一些数,形成一个集合S,剩下的数形成另一个集合P,使得S>= P ,并且对于S中任意元素ai,S-ai<=P 问有多少种方案。 题目链接:https://nanti.jisuanke.com/t/41420 只要减S堆中最小的石头后满足条件,那么该取法就满足题意 设dp【k】为S堆总 ...
分类:
其他好文 时间:
2020-07-10 15:07:29
阅读次数:
62
Silver Cow Party Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at ...
分类:
其他好文 时间:
2020-07-10 13:33:46
阅读次数:
81
写入时复制(CopyOnWrite)思想 写入时复制(CopyOnWrite,简称COW)思想是计算机程序设计领域中的一种优化策略。其核心思想是,如果有多个调用者(Callers)同时要求相同的资源(如内存或者是磁盘上的数据存储),他们会共同获取相同的指针指向相同的资源,直到某个调用者视图修改资源内 ...
分类:
其他好文 时间:
2020-07-09 15:31:56
阅读次数:
66
Stones Alice and the List of Presents Labs Alice and the Doll Alice and the Unfair Game A、Stones 题意: 给出三种石头分别$a$,$b$,$c$个,每次拿石头的时候只能拿$1$个第一种石头和$2$个第二种 ...
分类:
其他好文 时间:
2020-07-08 13:08:46
阅读次数:
53
Lost and AekdyCoin are friends. They always play "number game"(A boring game based on number theory) together. We all know that AekdyCoin is the man c ...
分类:
编程语言 时间:
2020-07-07 12:52:15
阅读次数:
93
链接:https://leetcode-cn.com/problems/jump-game-ii/ 代码 class Solution { public: int jump(vector<int>& nums) { int n = nums.size(); vector<int> f(n); for ...
分类:
其他好文 时间:
2020-07-07 09:32:36
阅读次数:
49
###题目描述 Bessie the cow, always a fan of shiny objects, has taken up a hobby of mining diamonds in her spare time! She has collected \(N\) diamonds \(( ...
分类:
其他好文 时间:
2020-07-06 19:44:16
阅读次数:
76