编写题解 1503: 蓝桥杯算法提高VIP-前10名 摘要:```c++ #include using namespace std; void Sort(int*nums,int n) { for(int i = 0;inums[i]; …… 题解列表 2023年05月08日 0 点赞 0 评论 339 浏览 评分:0.0
动态规划(DP) 初学 摘要:初学DP,可能有很多不恰当的地方 ```cpp ```cpp #include using namespace std; int c[35]; int dp[35][20005]; in…… 题解列表 2023年05月08日 0 点赞 0 评论 316 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-冶炼金属—二分算法 摘要:解题思路:求最大值和最小值,可以考虑二分注意事项:参考代码:#include<iostream>using namespace std;long long a[10005][3],n;int chec…… 题解列表 2023年05月07日 0 点赞 0 评论 1160 浏览 评分:8.0
指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void swap(int &a,int &b){ int *p=&a,*q=&b;…… 题解列表 2023年05月07日 0 点赞 0 评论 307 浏览 评分:0.0
星期判断机 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; switch…… 题解列表 2023年05月07日 0 点赞 0 评论 268 浏览 评分:0.0
矩阵的对角线之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[5][5],sum=0,sum1=0; …… 题解列表 2023年05月07日 0 点赞 0 评论 351 浏览 评分:0.0
罗列完美数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int wanmei(int n){ int sum=0; for(in…… 题解列表 2023年05月07日 0 点赞 0 评论 320 浏览 评分:0.0
完美数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,sum=0; cin>>x; …… 题解列表 2023年05月07日 0 点赞 0 评论 271 浏览 评分:0.0
60行代码!!! 摘要:解题思路:1.先创建p,q两个链表数组(我也不知道叫什么,随便取的,大佬勿喷) 2.输入数据 3.合并数组(为了后面的排序) &nbs 题解列表 2023年05月07日 0 点赞 0 评论 240 浏览 评分:0.0
1319: 没有上司的晚会 摘要:```cpp #include #include using namespace std; const int maxn=6001; int n,dp[maxn][2],hap[maxn];…… 题解列表 2023年05月06日 0 点赞 0 评论 421 浏览 评分:9.9