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 评论 407 浏览 评分:9.9
归并排序python解法 摘要:参考代码:def merge_sort(li): #数组长度不超过两个则不需要排序,直接返回 if len(li) <= 1: return mid=len(li)//…… 题解列表 2023年01月13日 0 点赞 0 评论 362 浏览 评分:9.9
归并排序求逆序对个数 摘要:解题思路:主要思想是归并排序,分为三种情况:①逆序数全部在左侧②逆序数全部在右侧③逆序数位于左右两侧参考代码:def merge_sort(li): if len(li) <= 1: …… 题解列表 2023年01月13日 0 点赞 0 评论 307 浏览 评分:9.9
1351: 数字三角形4 摘要:```cpp #include using namespace std; int arr[30][30]; int main() { int n,x,y; cin>>n;…… 题解列表 2023年01月13日 0 点赞 0 评论 430 浏览 评分:9.9
1346: 数字三角形4 摘要:```cpp #include using namespace std; int ij[27][27]; int main() { int n,answer=-1; ci…… 题解列表 2023年01月13日 0 点赞 0 评论 586 浏览 评分:9.9
2225: 蓝桥杯算法训练-出现次数最多的整数 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年01月13日 0 点赞 0 评论 256 浏览 评分:9.9
关于数字后移问题本质是下表和元素的关系 摘要:解题思路:就是下标和元素的关系注重好,画个图就可以自己看明白了注意事项:下标越界参考代码:#include <stdio.h>void f(){ int nums[50] ; int n ; scan…… 题解列表 2023年01月13日 0 点赞 0 评论 252 浏览 评分:9.9
[编程入门]链表合并 60行不到解决战斗 摘要: # **[编程入门]链表合并** #include typedef struct st { int id; int score; …… 题解列表 2023年01月13日 0 点赞 0 评论 254 浏览 评分:9.9
Minesweeper(水题) 摘要:```c #include //题目挺简单的,细心就好,唯一要注意的就是逐个输入字符要耀getchar忽略掉输入的换行。 int main(){ int n,m,i,j,k=0; ch…… 题解列表 2023年01月13日 0 点赞 0 评论 338 浏览 评分:9.9
年龄与疾病 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,s[100],j; scanf("%d",&n); double …… 题解列表 2023年01月13日 0 点赞 0 评论 448 浏览 评分:9.9