数列排序 (C语言代码) 摘要:参考代码:#define LEN 9 #include <stdio.h> void print(int a[]); void sort_2(int a[]); int main(vo…… 题解列表 2018年02月16日 0 点赞 0 评论 833 浏览 评分:0.0
数列排序 (C语言代码) 摘要:#include <stdio.h>int main(){ int i,j,k,N; int a[9],b[9]; while(scanf("%d",&N)!=EOF) …… 题解列表 2018年02月26日 0 点赞 0 评论 692 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路:用两个子数组分别保存大数和小数注意事项:打印小数数组时倒着打印参考代码:#include<stdio.h>int main(){ int N,num[9]; int i,less[9],bi…… 题解列表 2018年03月01日 0 点赞 1 评论 822 浏览 评分:0.0
数列排序 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[]ages){ …… 题解列表 2018年04月19日 0 点赞 0 评论 1049 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路: 使用stl的list很简单就可以实现。list可以实现链头插入,也可以实现链尾插入。注意事项:参考代码:#include <bits/stdc++.h> using namespace …… 题解列表 2018年10月26日 1 点赞 0 评论 680 浏览 评分:0.0
数列排序 (C++代码)dp标记一下 摘要:#include<bits/stdc++.h> using namespace std; int dp[100]; int main() { int n; cin>>n; int …… 题解列表 2018年11月21日 1 点赞 0 评论 597 浏览 评分:0.0
数列排序 (C++代码)水啊!(再开一个数组) 摘要:解题思路: 用一个B数组来实现新的数组的存储,然而这种又不是毒瘤题,水一下就OK了参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_…… 题解列表 2019年04月10日 0 点赞 1 评论 233 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路:再开一个数组存储; 题外话:我在想,是不是可以不开新数组,直接在原数组上调换位置;能实现这个想法的道友麻烦私信我推荐哈,万分感谢!!注意事项:我这题题解每行都是…… 题解列表 2019年04月11日 0 点赞 1 评论 377 浏览 评分:0.0
1219: 数列排序 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cmath> using namespace std; int n…… 题解列表 2021年11月21日 0 点赞 0 评论 334 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路: 思路1:将比K1大的数字用一个变量保存,然后再这个数之前的数全部往后移动一位,最后把变量中的数放到数组最前面。(无需管比K1大的数字) 思路2:重新定义两个数组,…… 题解列表 2019年05月02日 0 点赞 0 评论 790 浏览 评分:0.0