摘要:
做了一下去年的题目,今年看起来就没这么难了 从上到下的可以从下到上考虑,会简单很多,dp入门 题目 金币 小招在玩一款游戏,在一个N层高的金字塔上,以金字塔顶为第一层,第i层有i个落点,每个落点有若干金币,在落点可以往向下或右斜向下移动,问能获得的最大金币值。 其实也没啥好说的,就是动态规划数塔问题 阅读全文
posted @ 2021-04-29 16:20
KinoLogic
阅读(990)
评论(0)
推荐(0)
摘要:
#include <bits/stdc++.h> using namespace std; class Solution { public: int minNumberInRotateArray(vector<int> rotateArray) { int n = rotateArray.size( 阅读全文
posted @ 2021-04-27 11:04
KinoLogic
阅读(56)
评论(0)
推荐(0)
摘要:
问题: 有n个学生,学生们都在排队取餐,第个学生在L国时刻来到队尾,同一时刻来的学生编号小的在前,每个时刻当队列不为空时,排在队头的同学就可以拿到今天的中餐并离开队伍,若第个学生R团时刻不能拿到中餐,他就会离开队伍。问每个学生拿到中餐的的时刻(不能拿到的输出O) 输入描述: 第一行一个整数(1<t< 阅读全文
posted @ 2021-04-26 10:12
KinoLogic
阅读(623)
评论(0)
推荐(0)
摘要:
#include <bits/stdc++.h> using namespace std; struct node { int data; // 数据 node* next; // 指针 }; node* create(int Array[]) { node *p, *pre, *head; // 阅读全文
posted @ 2021-04-25 21:05
KinoLogic
阅读(64)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-04-20 10:57
KinoLogic
阅读(21)
评论(0)
推荐(0)
摘要:
按小蓝书上写的大数据情况下没过,按解答区一个大佬的修改了过了 #include <bits/stdc++.h> using namespace std; class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 计算0 阅读全文
posted @ 2021-04-17 22:58
KinoLogic
阅读(570)
评论(0)
推荐(0)
摘要:
#include <bits/stdc++.h> using namespace std; class Solution { public: /** * max sum of the subarray * @param arr int整型vector the array * @return int整 阅读全文
posted @ 2021-04-17 11:12
KinoLogic
阅读(155)
评论(0)
推荐(0)
摘要:
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), 阅读全文
posted @ 2021-04-16 10:37
KinoLogic
阅读(231)
评论(0)
推荐(0)
摘要:
https://zhuanlan.zhihu.com/p/342993772 在调用solution之前,要加一句 Solution solution; solution.函数名(输入变量); 以下是原文: 我拿我们刚讲过的这道题动态规划:使用最小花费爬楼梯来做示范。 力扣746. 使用最小花费爬楼 阅读全文
posted @ 2021-04-16 09:57
KinoLogic
阅读(592)
评论(0)
推荐(0)
摘要:
横向合同和外协合同在办理合同盖章前,必须先在科研管理系统立项且审核通过后,再到合同管理系统中发起合同信息审核流程,通过审核后凭打印的《合同备案表》到科研院综合办(B2-516)办理合同章盖章。 纵向项目相关合同办理合同盖章前,根据科研院业务管理科室要求是否先在科研管理系统申报/立项且审核通过后,再线 阅读全文
posted @ 2021-04-09 21:08
KinoLogic
阅读(1181)
评论(1)
推荐(0)
浙公网安备 33010602011771号