c代码记录之宏定义找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define MAX(a,b,c) (a>b?a:b)>c?(a>b?a:b):c //#define MAX(a,b,c) …… 题解列表 2023年11月10日 0 点赞 0 评论 333 浏览 评分:0.0
变幻的矩阵(他这题,呃我不知道检测的数据是什么,记得初始化时不要char a[n][n]这样,会答案错误,数组空间定义时不能用变量) 摘要:解题思路:写代码要逐渐习惯模块化了,这里用四个函数来实现矩阵的四种可能性注意事项:参考代码:#include<stdio.h> int unchange(int n,char a1[20][20],…… 题解列表 2023年11月10日 0 点赞 2 评论 370 浏览 评分:2.0
题解 2813: 药房管理 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d=0,e=0; cin>>a>>b; …… 题解列表 2023年11月10日 0 点赞 0 评论 427 浏览 评分:9.9
2797: 最高的分数 摘要:``` #include using namespace std; int main(){ int n,b,a=0; cin>>n; for(int i=1;i>b; if(a…… 题解列表 2023年11月10日 0 点赞 0 评论 404 浏览 评分:9.9
题解 3077: 信息学奥赛一本通T1332-周末舞会 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d=0,e=0; cin>>a>>b>>…… 题解列表 2023年11月10日 0 点赞 0 评论 478 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> #include <complex.h> // 计算并输出实数根的函数 void r…… 题解列表 2023年11月10日 0 点赞 0 评论 388 浏览 评分:0.0
糖果游戏(c代码) 摘要:解题思路:注意事项:代码中的除法运算可能会导致整数溢出,因为数组的每个元素都是一个int类型的整数。如果除数为3的整数结果大于int类型的最大值(2147483647),则可能会导致整数溢出。参考代码…… 题解列表 2023年11月10日 0 点赞 0 评论 565 浏览 评分:9.9
循环控制,汽水瓶 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int test1(int n) { return n / 3;}int test2(int n) { retu…… 题解列表 2023年11月10日 0 点赞 0 评论 355 浏览 评分:0.0
优质题解 用switch解自定义函数之字符提取 摘要:解题思路:在函数内部,定义了一个整型变量`i`并初始化为0。`i`将用于记录在`ch2`数组中插入的位置。接下来是一个`while`循环,循环条件是`*ch1`指向的字符不是空字符`\0`。在循环体内…… 题解列表 2023年11月10日 1 点赞 6 评论 2735 浏览 评分:9.7
(大整数减法)C语言思路简单,易懂!!! 理解万岁 超级好理解 &_& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>void change(char n[],int m){ //将数字字符逆序 int i…… 题解列表 2023年11月09日 0 点赞 0 评论 479 浏览 评分:0.0