考验逻辑但简洁的三目运算符 摘要:解题思路:注意事项:参考代码:#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 评论 387 浏览 评分:0.0
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 评论 254 浏览 评分:0.0
[编程入门]三个数字的排序------(Python) 摘要:利用Python函数: sort-----对列表进行排序 ```python team=list(map(int,input().split())) team.sort() for i in…… 题解列表 2021年11月05日 0 点赞 0 评论 1028 浏览 评分:9.9
[编程入门]三个数字的排序(用的比较麻烦的循环) 摘要:参考代码:#include<stdio.h>int main(){ int a[3], i,max,min,c,b; for (i = 0; i < 3; i++) { …… 题解列表 2021年11月01日 0 点赞 0 评论 283 浏览 评分:0.0
简单代码易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<b&&a<c) if…… 题解列表 2021年10月14日 0 点赞 0 评论 276 浏览 评分:0.0
三个数字排序题解 摘要:解题思路:注意事项:参考代码:list=[int(a) for a in input().split()]list.sort()for i in list: print(i,end=" ")…… 题解列表 2021年10月02日 0 点赞 0 评论 590 浏览 评分:0.0
利用三目运算符 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,x1,x2,x3; scanf("%d %d %d",&a,&b,&c); x1=(a<b?…… 题解列表 2021年09月26日 0 点赞 0 评论 282 浏览 评分:0.0
1043:三个数字排序题解 摘要:解题思路:运用选择排序注意事项:交换的三行代码:t=a;a=b;b=t;参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d%d…… 题解列表 2021年09月21日 0 点赞 0 评论 357 浏览 评分:9.9
[编程入门]三个数字的排序-题解(C++代码) 利用问号表达式 摘要:解题思路:利用问号表达式分别求出最大值和最小值,再通过总数减去两值的方法求出中间数.注意事项:参考代码:#includeusing namespace std; int main() { …… 题解列表 2021年09月08日 0 点赞 0 评论 650 浏览 评分:9.9
[编程入门]三个数字的排序 Python解决 摘要:解题思路: 使用列表,for循环等参考代码:number = list(map(int,input().split()))number.sort()number_a = ''fo…… 题解列表 2021年08月23日 0 点赞 0 评论 475 浏览 评分:0.0