2791: 计算邮资 摘要:```cpp #include using namespace std; int main() { int n,sum; char ji; cin>>n>>ji;…… 题解列表 2023年01月13日 0 点赞 0 评论 572 浏览 评分:9.9
2793: 点和正方形的关系 摘要:```cpp #include using namespace std; int main() { int a,b; cin>>a>>b; if(a=-1&&b=…… 题解列表 2023年01月13日 0 点赞 0 评论 709 浏览 评分:9.9
2796: 求整数的和与均值 摘要:```cpp #include #include using namespace std; int main() { int x,s=0,n; cin>>n; …… 题解列表 2023年01月13日 1 点赞 0 评论 798 浏览 评分:9.9
1587: 蓝桥杯算法训练VIP-Buying Sets 摘要:```cpp #include #include #include #include using namespace std; const int MAXN=305,INF=1…… 题解列表 2023年01月13日 0 点赞 0 评论 419 浏览 评分:9.9
1236: 母牛生小牛 摘要:```cpp #include using namespace std; int count(int year) { if(year>N; cout…… 题解列表 2023年01月13日 0 点赞 0 评论 374 浏览 评分:9.9
1233: 核电站问题 摘要:```cpp #include using namespace std; int main() { int n; long long dp[50]={0,2,4,7}; …… 题解列表 2023年01月13日 0 点赞 0 评论 441 浏览 评分:9.9
1232: 查找最大元素 摘要:```cpp #include #include using namespace std; int main() { string str; while(cin>>str…… 题解列表 2023年01月13日 0 点赞 0 评论 380 浏览 评分:9.9
1230: 最小重量机器设计问题 摘要:```cpp #include #include using namespace std; const int maxn=1001; int n,m,d,c[maxn][maxn],w[ma…… 题解列表 2023年01月13日 0 点赞 0 评论 502 浏览 评分:9.9
归并排序python解法 摘要:参考代码:def merge_sort(li): #数组长度不超过两个则不需要排序,直接返回 if len(li) <= 1: return mid=len(li)//…… 题解列表 2023年01月13日 0 点赞 0 评论 428 浏览 评分:9.9
归并排序求逆序对个数 摘要:解题思路:主要思想是归并排序,分为三种情况:①逆序数全部在左侧②逆序数全部在右侧③逆序数位于左右两侧参考代码:def merge_sort(li): if len(li) <= 1: …… 题解列表 2023年01月13日 0 点赞 0 评论 369 浏览 评分:9.9