1025: [编程入门]数组插入处理 摘要:解题思路:注意事项: #include <stdio.h>#define M 10//插入排序void insertSort(int arry[], int len){ int i; …… 题解列表 2021年11月19日 0 点赞 0 评论 503 浏览 评分:2.0
非常精简,一个数组,两个循环(C语言)。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b=0,n=9,x[9]={0}; while(n--&&scanf("%d",&a…… 题解列表 2021年11月14日 0 点赞 0 评论 913 浏览 评分:0.0
1025: [编程入门]数组插入处理 摘要:解题思路:运用迭代思想注意事项:先画流程图理清思路,关键是将第二行的数按正序插入第一行中,我们采用迭代的方法,将插入的数放入score【9】中,然后将score【9】与score【8】,score【7…… 题解列表 2021年11月12日 0 点赞 0 评论 487 浏览 评分:0.0
1025 就是钱欠收拾,,,C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ int i,t,a[10]; for(i=0;i<9;i++) { …… 题解列表 2021年11月09日 0 点赞 0 评论 441 浏览 评分:0.0
不使用数组移位的方法解决该题 摘要:解题思路:判断n处于哪个位置,先输出n前面的数字,在输出n的值,然后再输出n后面的数值。注意事项:参考代码:#include<stdio.h>int main(){ int a[9],n; for (…… 题解列表 2021年11月09日 0 点赞 0 评论 509 浏览 评分:9.9
数组插入处理。数组移位简单分析 摘要:解题思路:首先用for循环判断输入的n具体在哪个位置;在把n之后的数组往后移一位注意事项:特别要注意当数组中没有比n更大的情况,这是只需把数组按顺序输出,然后再输出n就行参考代码:#include<s…… 题解列表 2021年11月09日 0 点赞 0 评论 708 浏览 评分:9.9
[编程入门]数字插入处理-----利用函数------(Python) 摘要:Python append----在最末尾添加 sort-----将列表排序 ```python team=list(map(int,input().split())) n=int(inpu…… 题解列表 2021年11月05日 0 点赞 0 评论 561 浏览 评分:0.0
用选择排序法解题 摘要:我感觉把这10个数放一起比大小思路会简单些 中间再插入一个数放入数组,然后其它数移到后面数组的方法感觉不容易实现 ```c //选择排序法 #include int main () {…… 题解列表 2021年11月05日 0 点赞 0 评论 500 浏览 评分:9.9
初学者的拙劣方法 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main(){ int a[9]; int b; int i; for(i = 0;i<9;i++) …… 题解列表 2021年11月04日 0 点赞 0 评论 644 浏览 评分:0.0
C++ STL Vector + 二分查找 摘要:解题思路: lower_bound:查找第一个大于或等于某个元素的位置。 upper_bound:查找第一个大于某个元素的位置。代码:#include<bits/stdc++.h> us…… 题解列表 2021年11月04日 0 点赞 1 评论 1184 浏览 评分:9.9