1219: 数列排序 摘要:解题思路:观察输出,发现比第一位小的排序是靠右的排在前面,所以先从最后面开始遍历数组,找到比第一位小的就打印出来,然后再打印比第一位大的数参考代码:#include <stdio.h> int …… 题解列表 2022年01月17日 0 点赞 0 评论 578 浏览 评分:9.9
数列排序(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<vector> #include<cstdio> using namespace std; vector<…… 题解列表 2021年12月12日 0 点赞 0 评论 259 浏览 评分:0.0
数列排序 课堂笔记STL 摘要:解题思路:vector向量,动态数组;vectorv1.begin()选取第一个元素v1.clear()清除v1.push_back(x)表示在vector容器后面添加一个元素xv1.insert(v…… 题解列表 2021年11月23日 0 点赞 0 评论 389 浏览 评分:9.9
1219: 数列排序 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cmath> using namespace std; int n…… 题解列表 2021年11月21日 0 点赞 0 评论 312 浏览 评分:0.0
1219: 数列排序 摘要:```python n = int(input()) for i in range(n): st1, st2 = '', '' lis = list(map(str, inpu…… 题解列表 2021年06月20日 0 点赞 0 评论 217 浏览 评分:0.0
优质题解 1219: 数列排序 (C语言代码) 双数组简单思路 摘要:解题思路:空间换时间,用两个数组分别记录比第一个输入的数小的和大的元素首先输入一个数,接下来输入八个数,比第一个数小的放进数组 A ,比第一个数大的放进 B 数组输出的时候先遍历输出数组 A ,再输出…… 题解列表 2021年03月24日 0 点赞 1 评论 1743 浏览 评分:8.0
数列排序:堆栈 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; int a[10]; sta…… 题解列表 2021年03月15日 0 点赞 0 评论 242 浏览 评分:9.9
暴力简洁排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int N; scanf("%d",&N); while(N--) { …… 题解列表 2021年03月09日 0 点赞 0 评论 173 浏览 评分:0.0
数列排序-题解(Python代码) 摘要: n = int(input()) for i in range(n): m = [] lst = list(map(int,input().spl…… 题解列表 2021年01月24日 0 点赞 0 评论 356 浏览 评分:0.0
数列排序-题解(C语言代码) 摘要: #include #include #include using namespace std; int main(int argc, char const *argv[]) {…… 题解列表 2020年11月15日 0 点赞 0 评论 366 浏览 评分:0.0