蓝桥杯算法提高VIP-前10名 (C语言代码)冒泡,选择,任选其一!! 摘要:解题思路:冒泡或者选择排序,先排好,再输出!!注意事项:无!!参考代码:#include<stdio.h>int main(){ int n,i,j,t,k; int a[210]; scanf("%…… 题解列表 2019年04月29日 1 点赞 0 评论 1250 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int a[2000]; int main() { int n,t; scanf("%d",&n); //输入 …… 题解列表 2019年04月29日 0 点赞 0 评论 2534 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 (C语言代码) 解题思路:1、先读入十个数,并且排序(为什么不能直接将数组初始化为0?因为不排除这些数据都是小于0的);2、接下来的每个数据都跟数组里边的数据比较,得出大的次数,也就是得到这个数据应该排在第几位;3、将数组后边比这个最新录入的数据小的数都往后挪一位, 题解列表 2019年04月03日 0 点赞 0 评论 1444 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 (C语言代码) 摘要:#include<stdio.h>int main(){ int n,a[200],t; do { scanf("%d",&n); }while(n<10||n>200); int i,j; for…… 题解列表 2019年02月14日 0 点赞 0 评论 1178 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*数据很多,但我们经常只取前几名,比如奥运只取前3名。现在我们有n个数据,请按从大到小的顺序,输出前10个名数据。数据规模和约定 10< =n< =200,各个整数不超…… 题解列表 2018年03月06日 0 点赞 0 评论 3068 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[200]={0}; int n,t; scanf("%d",&n); for(i=0;i<n…… 题解列表 2018年03月01日 1 点赞 1 评论 988 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 (C语言代码) 摘要:参考代码:#include <stdio.h> int main() { int i,j,n,t,max,a[200]; scanf("%d",&n); for(i=…… 题解列表 2018年01月29日 2 点赞 0 评论 2716 浏览 评分:0.0
前10名 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,a[200],i,j; scanf("%d",&n); for(i=0;i<n;i+…… 题解列表 2017年10月22日 0 点赞 0 评论 1999 浏览 评分:9.9