1043原来是这C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main (){ int max,min,mid,a,b,c;scanf("%d %d %d"…… 题解列表 2021年11月05日 0 点赞 0 评论 292 浏览 评分:0.0
考验逻辑但简洁的三目运算符 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define Max(a,b,c) a>b?(a>c?a:c):(b>c?b:c)#define Mid(a,b,c) a>b?(b…… 题解列表 2021年11月05日 0 点赞 0 评论 433 浏览 评分:0.0
1043: [编程入门]三个数字的排序 摘要:解题思路: 穷举, 把所有情况都列出进行一波暴击试验从而得出答案参考代码:#include <stdio.h> int main() { int a, b, c; scanf("%d%…… 题解列表 2021年11月12日 0 点赞 0 评论 408 浏览 评分:0.0
三个数字的排序 摘要:解题思路:注意事项:参考代码:int a[3],j,k,l; for(j=0;j<3;j++) scanf("%d",&a[j]); for(j=1;j<3;j++) for(…… 题解列表 2021年11月16日 0 点赞 0 评论 353 浏览 评分:0.0
排序(C语言自己的排序函数) 摘要: #include #include //C语言自己的排序函数为qsort(),内部运用的是快速排序机制 int comp(const void *a,co…… 题解列表 2021年11月18日 0 点赞 0 评论 510 浏览 评分:0.0
冒泡排序法 摘要:解题思路:首先我们看到这个题时应该会想起冒泡排序,那么我们就可以尝试用数组来储存数值,利用for循环输入元素,之后利用冒泡排序对元素进行排序,最后利用for循环来输出排序后的数值。注意事项:冒泡排序时…… 题解列表 2021年11月26日 0 点赞 0 评论 527 浏览 评分:0.0
降序输出3个数 摘要:解题思路:3个变量依次比较就行了注意事项:参考代码:# include <stdio.h>int main () {int a,b,c,t; scanf ("%d %d %d",&a,&b,&c); …… 题解列表 2021年12月04日 0 点赞 0 评论 425 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d %d %d",&a,&b,&c); if(a>b…… 题解列表 2021年12月05日 0 点赞 0 评论 332 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; i…… 题解列表 2021年12月09日 0 点赞 0 评论 350 浏览 评分:0.0
三个数字的排序-冒泡/选择排序法 摘要:解题思路:冒泡法与选择法排序注意事项:参考代码:#include <stdio.h>int main(){ int i,j,t,a[3]; //定义变量及数组为基本整型 //prin…… 题解列表 2021年12月11日 0 点赞 0 评论 468 浏览 评分:0.0