上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 因为我的github访问不了了,搜索解决方案为修改host文件 https://blog.csdn.net/curry10086/article/details/106800184/ 在hosts文件中加入 192.30.255.113 github.com #备用地址1 #13.250.177.2 阅读全文
posted @ 2021-05-03 17:15 KinoLogic 阅读(256) 评论(0) 推荐(0)
摘要: 题目:小Z组织训练营同学进行一次拔河比赛,要从n(2≤n≤60,000)个同学中选出两组同学参加(两组人数可能不同)。对每组同学而言,如果人数超过1人,那么要求该组内的任意两个同学的体重之差的绝对值不超过k(包含k)。问最多有几个同学能参加比赛? 我的超时了 #include <bits/stdc+ 阅读全文
posted @ 2021-05-03 11:00 KinoLogic 阅读(649) 评论(0) 推荐(0)
摘要: 做了一下去年的题目,今年看起来就没这么难了 从上到下的可以从下到上考虑,会简单很多,dp入门 题目 金币 小招在玩一款游戏,在一个N层高的金字塔上,以金字塔顶为第一层,第i层有i个落点,每个落点有若干金币,在落点可以往向下或右斜向下移动,问能获得的最大金币值。 其实也没啥好说的,就是动态规划数塔问题 阅读全文
posted @ 2021-04-29 16:20 KinoLogic 阅读(952) 评论(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 阅读(47) 评论(0) 推荐(0)
摘要: 问题: 有n个学生,学生们都在排队取餐,第个学生在L国时刻来到队尾,同一时刻来的学生编号小的在前,每个时刻当队列不为空时,排在队头的同学就可以拿到今天的中餐并离开队伍,若第个学生R团时刻不能拿到中餐,他就会离开队伍。问每个学生拿到中餐的的时刻(不能拿到的输出O) 输入描述: 第一行一个整数(1<t< 阅读全文
posted @ 2021-04-26 10:12 KinoLogic 阅读(569) 评论(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 阅读(55) 评论(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 阅读(553) 评论(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 阅读(133) 评论(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 阅读(200) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
点击右上角即可分享
微信分享提示