04 2021 档案
摘要:做了一下去年的题目,今年看起来就没这么难了 从上到下的可以从下到上考虑,会简单很多,dp入门 题目 金币 小招在玩一款游戏,在一个N层高的金字塔上,以金字塔顶为第一层,第i层有i个落点,每个落点有若干金币,在落点可以往向下或右斜向下移动,问能获得的最大金币值。 其实也没啥好说的,就是动态规划数塔问题
阅读全文
摘要:#include <bits/stdc++.h> using namespace std; class Solution { public: int minNumberInRotateArray(vector<int> rotateArray) { int n = rotateArray.size(
阅读全文
摘要:问题: 有n个学生,学生们都在排队取餐,第个学生在L国时刻来到队尾,同一时刻来的学生编号小的在前,每个时刻当队列不为空时,排在队头的同学就可以拿到今天的中餐并离开队伍,若第个学生R团时刻不能拿到中餐,他就会离开队伍。问每个学生拿到中餐的的时刻(不能拿到的输出O) 输入描述: 第一行一个整数(1<t<
阅读全文
摘要:#include <bits/stdc++.h> using namespace std; struct node { int data; // 数据 node* next; // 指针 }; node* create(int Array[]) { node *p, *pre, *head; //
阅读全文
摘要:按小蓝书上写的大数据情况下没过,按解答区一个大佬的修改了过了 #include <bits/stdc++.h> using namespace std; class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 计算0
阅读全文
摘要:#include <bits/stdc++.h> using namespace std; class Solution { public: /** * max sum of the subarray * @param arr int整型vector the array * @return int整
阅读全文
摘要:ACM #include <bits/stdc++.h> using namespace std; const int maxn = 1010; char S[maxn]; int dp[maxn][maxn]; int main() { gets(S); int len = strlen(S),
阅读全文
摘要:https://zhuanlan.zhihu.com/p/342993772 在调用solution之前,要加一句 Solution solution; solution.函数名(输入变量); 以下是原文: 我拿我们刚讲过的这道题动态规划:使用最小花费爬楼梯来做示范。 力扣746. 使用最小花费爬楼
阅读全文
摘要:横向合同和外协合同在办理合同盖章前,必须先在科研管理系统立项且审核通过后,再到合同管理系统中发起合同信息审核流程,通过审核后凭打印的《合同备案表》到科研院综合办(B2-516)办理合同章盖章。 纵向项目相关合同办理合同盖章前,根据科研院业务管理科室要求是否先在科研管理系统申报/立项且审核通过后,再线
阅读全文
摘要:windows版本的 安装看这篇,非常详细:https://www.cnblogs.com/winton-nfs/p/11524007.html 彻底清除:https://www.pianshen.com/article/84121045092/ 重中之重:管理员运行cmd mac版本的 安装:ht
阅读全文
摘要:1.数组 *数组的创建 int[] array = {1,2,3,4,5}; 注意区别于C++ int a[] = (1)两种输出方法 public class number { public static void main(String[] args) { int[] array = {1,2,
阅读全文
摘要:tx的笔试,但是只过了10%,就离谱 #include <bits/stdc++.h> using namespace std; const int maxn = 1010; long data[maxn][maxn] = {0}; long dp[maxn][maxn] = {0}; int ma
阅读全文
摘要:假定一种编码的编码范围是a ~ y的25个字母,从1位到4位的编码,如果我们把该编码按字典序排序,形成一个数组如下: a, aa, aaa, aaaa, aaab, aaac, … …, b, ba, baa, baaa, baab, baac … …, yyyw, yyyx, yyyy 其中a的I
阅读全文