1002:[编程入门]三个数最大值 摘要:解题思路: o=(a+b+abs(a-b))/2; nums=(o+c+abs(o-c))/2;求最值的式子,熟练了也可以用于数组求最值注意事项:一定要说注意的地方在哪的话,定义的数据类型算一个吧,l…… 题解列表 2023年06月10日 0 点赞 0 评论 348 浏览 评分:9.9
C++ 数据结构-直接插入排序 摘要:# C++手撕插排 ```c++ #include using namespace std; void Sort(int* nums, int n) { int i = 0, j = 0…… 题解列表 2023年06月10日 0 点赞 0 评论 550 浏览 评分:0.0
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10]; for(i=0;i<10;i++) { scanf("…… 题解列表 2023年06月10日 0 点赞 0 评论 276 浏览 评分:0.0
Hello, World!(C++) 摘要:#include<iostream>using namespace std;int main(){ cout<<"Hello, World!"<<endl; return 0;}…… 题解列表 2023年06月10日 0 点赞 0 评论 241 浏览 评分:0.0
编写题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d", &a, &b); printf("%d ",a/…… 题解列表 2023年06月10日 0 点赞 0 评论 382 浏览 评分:0.0
编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d", &a, &b); printf("%d\n",a…… 题解列表 2023年06月10日 0 点赞 0 评论 298 浏览 评分:0.0
编写题解 2936: 简单算术表达式求值(C++) 摘要:解题思路:使用switch参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char ch; int a,b; …… 题解列表 2023年06月10日 0 点赞 0 评论 458 浏览 评分:9.9
浮点型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; double b; printf("%d %d",sizeof(a),siz…… 题解列表 2023年06月10日 0 点赞 2 评论 1084 浏览 评分:9.9
很简单且易懂的求阶乘 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(a){ int i,m=1; for(i=1;i<=a;i++) { m*=i; } …… 题解列表 2023年06月10日 0 点赞 0 评论 281 浏览 评分:0.0
题目 1023: [编程入门]选择排序 摘要:解题思路:冒泡排序注意事项:参考代码:/*题目 1023: [编程入门]选择排序题目描述用选择法对10个整数从小到大排序。输入格式输入10个无序的数字*/#include<stdio.h>int ma…… 题解列表 2023年06月10日 0 点赞 0 评论 283 浏览 评分:0.0