上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: https://zhuanlan.zhihu.com/p/342993772 在调用solution之前,要加一句 Solution solution; solution.函数名(输入变量); 以下是原文: 我拿我们刚讲过的这道题动态规划:使用最小花费爬楼梯来做示范。 力扣746. 使用最小花费爬楼 阅读全文
posted @ 2021-04-16 09:57 KinoLogic 阅读(551) 评论(0) 推荐(0)
摘要: 横向合同和外协合同在办理合同盖章前,必须先在科研管理系统立项且审核通过后,再到合同管理系统中发起合同信息审核流程,通过审核后凭打印的《合同备案表》到科研院综合办(B2-516)办理合同章盖章。 纵向项目相关合同办理合同盖章前,根据科研院业务管理科室要求是否先在科研管理系统申报/立项且审核通过后,再线 阅读全文
posted @ 2021-04-09 21:08 KinoLogic 阅读(1034) 评论(1) 推荐(0)
摘要: windows版本的 安装看这篇,非常详细:https://www.cnblogs.com/winton-nfs/p/11524007.html 彻底清除:https://www.pianshen.com/article/84121045092/ 重中之重:管理员运行cmd mac版本的 安装:ht 阅读全文
posted @ 2021-04-08 10:51 KinoLogic 阅读(42) 评论(0) 推荐(0)
摘要: 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, 阅读全文
posted @ 2021-04-07 16:03 KinoLogic 阅读(52) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2021-04-06 15:52 KinoLogic 阅读(355) 评论(0) 推荐(0)
摘要: 假定一种编码的编码范围是a ~ y的25个字母,从1位到4位的编码,如果我们把该编码按字典序排序,形成一个数组如下: a, aa, aaa, aaaa, aaab, aaac, … …, b, ba, baa, baaa, baab, baac … …, yyyw, yyyx, yyyy 其中a的I 阅读全文
posted @ 2021-04-04 16:51 KinoLogic 阅读(87) 评论(0) 推荐(0)
摘要: 晴神这个的最巧妙之处,在于用dp[i][0] = dp[0][j] = 0的边界条件 这样从1的下标开始填数组的时候,递推公式dp[i-1][j-1]之类的不会报错 #include <iostream> #include <string> #include <vector> #include <a 阅读全文
posted @ 2021-03-16 10:54 KinoLogic 阅读(207) 评论(0) 推荐(1)
摘要: 声明 vector<vector<int> vec; //赋值思路可以从这个很基础的操作里看出来 vector<int> a; a.push_back(1); a.push_back(2); a.push_back(3); vector<int> b; b.push_back(4); b.push_ 阅读全文
posted @ 2021-03-16 10:19 KinoLogic 阅读(1656) 评论(0) 推荐(0)
摘要: 一般用 s.length() s.size() 两种 size也可以用于vector string和vector的区别 string输入直接cin vector一般类似压栈pushback 输入一般是cin >> tmp 然后vec.push_back(tmp); 阅读全文
posted @ 2021-03-15 16:58 KinoLogic 阅读(755) 评论(0) 推荐(0)
摘要: #include <iostream> #include <vector> using namespace std; int main() { //输入 int tmp; vector<int> input; while (cin >> tmp) { input.push_back(tmp); if 阅读全文
posted @ 2021-03-15 15:49 KinoLogic 阅读(593) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
点击右上角即可分享
微信分享提示