数列有序-题解(C语言代码) 摘要: #include int insert_element(int *a,int n,int m){ int i,j; for(i=0;i=a[n-1…… 题解列表 2019年12月01日 0 点赞 0 评论 411 浏览 评分:0.0
数列有序:极简(不用数组,输入时同时输出) 摘要:解题思路:极简,输入时同时输出注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;consti…… 题解列表 2025年03月25日 0 点赞 0 评论 51 浏览 评分:0.0
无需链表、数组 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年04月10日 0 点赞 0 评论 105 浏览 评分:0.0
数列有序C++实现 摘要:## 插入排序的实现 ```c++ #include using namespace std; #include const int N = 100010; int q[N]; …… 题解列表 2023年07月22日 0 点赞 0 评论 206 浏览 评分:0.0
数列有序C++超简单! 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,a[101]; while(cin>>n>>…… 题解列表 2022年05月10日 0 点赞 0 评论 184 浏览 评分:0.0
1220题解 C++ 序列有序 新思路 摘要:解题思路: 1.把数直接插入原序列的末尾 2.然后用sort函数对新序列进行排序后再输出 注意事项: 利用sort函数要加algorithm的头文件 参考代码: ```cpp #incl…… 题解列表 2022年04月25日 0 点赞 0 评论 281 浏览 评分:0.0
数列有序-题解(Python代码) 摘要:```python from bisect import insort n,m=map(int,input().split()) while n and m: l=list(map(int,…… 题解列表 2022年04月13日 0 点赞 0 评论 352 浏览 评分:0.0
很多小东西,全部都要考虑周全,最大数和最小是 摘要: int n, m; int temp; while(scanf("%d %d",&n,&m) == 2){ if(n == 0 && m == 0){ break; } …… 题解列表 2022年03月06日 0 点赞 0 评论 163 浏览 评分:0.0
数列有序-题解(C语言代码)快速排序就可以了... 摘要:```c #include #include int cmp(const void *a,const void *b) { return (*(int *)a-*(int *)b); }…… 题解列表 2020年05月03日 0 点赞 0 评论 548 浏览 评分:0.0
数列有序-题解(C++代码) 插入排序法和链表插入 摘要:```cpp #include using namespace std; int a[100]; typedef struct Node{ int data; struct…… 题解列表 2020年04月05日 0 点赞 0 评论 511 浏览 评分:0.0