1856: 最小三个数 摘要:解题思路:注意事项:参考代码:n = int(input()) m = list(map(int,input().split())) m.sort() for i in range(3): …… 题解列表 2021年12月31日 0 点赞 0 评论 282 浏览 评分:0.0
题解 1856: 最小三个数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n; scanf("%d",&n); if(n >= 3 && …… 题解列表 2022年04月02日 0 点赞 0 评论 143 浏览 评分:0.0
1856: 最小三个数 摘要:解题思路:用冒泡排序,输出a[0],a[1],a[2]即可!注意事项:是if(a[j]>a[j+1]),不是if(a[j]<a[j+1])。参考代码:#include<iostream> using…… 题解列表 2022年07月06日 0 点赞 0 评论 413 浏览 评分:9.9
最小三个数--冒泡排序法+快速排序法+踩坑过程 摘要:解题思路: 这个题看似简单,是用排序算法做的。还是有一点点坑的,当然我入坑了。我刚开始用的快速排序法,写的排序部分,结果运行结果是内存超限,现在我还没搞懂为什么,等我弄懂…… 题解列表 2022年11月03日 0 点赞 2 评论 203 浏览 评分:9.9
编写题解 1856: 最小三个数 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class Main { public static vo…… 题解列表 2022年12月17日 0 点赞 0 评论 103 浏览 评分:0.0
最小三个数 摘要:解题思路:先从小到大排序 ,在输出使用冒泡排序参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; int i,j,t;…… 题解列表 2023年03月19日 0 点赞 0 评论 136 浏览 评分:0.0
最小三个数(排序+输出) 摘要:# 冒泡排序 ```c++ #include using namespace std; void Sort(int*nums,int n) { for(int i = 0;i>n…… 题解列表 2023年05月12日 0 点赞 1 评论 262 浏览 评分:9.9
小错误小细节要注意,输出格式要再次确认,数值型字符型要区分清楚 摘要:解题思路:注意事项:参考代码:n=int(input())l=list(map(int,input().split()))#忘记转成数值型,不能犯懒##print(l)#测试输出要提出l.sort()…… 题解列表 2023年05月25日 0 点赞 0 评论 159 浏览 评分:9.9
1856: 最小三个数 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; int arr[100]…… 题解列表 2023年10月08日 0 点赞 0 评论 66 浏览 评分:0.0
最小三个数 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i…… 题解列表 2023年10月25日 0 点赞 0 评论 151 浏览 评分:0.0