逐步比较法求得三个数中最大值 摘要:解题思路:一共存在三个数,若要求得最大值,可以先比C和B,然后将C与B中较大的值去与A比较。就可以得出最大的一个数啦!max(b,c)就是B和C中较大的数max(a,max(b,c))就是A和B与C中…… 题解列表 2023年06月28日 0 点赞 0 评论 396 浏览 评分:9.9
明明的随机数(正规) 摘要:解题思路:把相等于0,然后在排,在定义个数组,把不等于0的复制其中,然后输出.......注意事项:无参考代码:#include<iostream>#include<algorithm>using n…… 题解列表 2023年06月28日 0 点赞 0 评论 306 浏览 评分:9.9
温度转换入门小白求法 摘要: ###### #根据题目我们可以知道要求为 ---- 将温度进行转换 温度转换公式为 c=5(F-32)/9,取位2小数。 这是题目要求 输入一个华氏温度,要求输出摄氏温度。且温度要取…… 题解列表 2023年06月28日 1 点赞 0 评论 1043 浏览 评分:7.3
蛇行矩阵(简简单单) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n; cin>>…… 题解列表 2023年06月28日 0 点赞 0 评论 401 浏览 评分:9.9
汤少的随机数(C语言解法)先排序后去重 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string.h>using namespace std;int main(){int a[100],b,c,d;…… 题解列表 2023年06月28日 0 点赞 0 评论 292 浏览 评分:0.0
直接根据ASCII表进行输出,减少循环次数 摘要: #include #include int main(){ char str[10000]; int arr[26] = { 0 }; while (gets(str)) { …… 题解列表 2023年06月28日 0 点赞 0 评论 393 浏览 评分:0.0
1030: [编程入门]二维数组的转置 摘要:# 自己写的代码 ```c #include int main() { int a[3][3]; int b[3][3]; for(int i=0;i…… 题解列表 2023年06月28日 0 点赞 0 评论 347 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str[101]; gets(str); str[strlen(str)] = &#…… 题解列表 2023年06月29日 0 点赞 0 评论 322 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float k,p,profit,money=0.0,sum_profit=0.0; int n; …… 题解列表 2023年06月29日 0 点赞 0 评论 357 浏览 评分:0.0
猴子吃桃的问题 摘要:#include <stdio.h> int main(){ int T,N,i,sum=1; scanf("%d",&N); for(i=1;i<N;i++){ sum=(sum…… 题解列表 2023年06月29日 0 点赞 0 评论 273 浏览 评分:0.0