题解 1220: 数列有序

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int m, n,i;    while (scanf("%d %d", &n, &m) == 2 && ……

数列有序-题解(C语言代码)

摘要:不使用序列插入。先存储序列,最后输出时把要插入的数据放到合适的位置 ```c #include #include int main(int argc, const char *argv……

数列有序-C++超简单解法

摘要:**没必要把输入的数存起来,输入的时候直接判断然后输出就行** ```cpp #include using namespace std; int main() { int n, x, t……

Manchester- 数列有序-题解(C语言代码)

摘要:#### 解题思路: 1. 输入两个整数n和m,当n和m同时为0时结束 1. 开辟一个长度为n+1的整数数组A[n+1] 1. 向数组A中输入n个有序整数 1. 在数组A中从后向前找到m的插入……

数列有序 (C语言代码)

摘要:解题思路:检索 插入注意事项:参考代码:#include<stdio.h>int a[101];void glc(int n,int m){ int i,j,k; for(i=0;i<n;i++){/……

数列有序C++实现

摘要:## 插入排序的实现 ```c++ #include using namespace std; #include const int N = 100010; int q[N]; ……