1067: 二级C语言-分段函数 清晰易懂 摘要:本题需要注意一个点,计算(x+1)^1/2的时候,不能写1/2,要写成1.0/2,计算前者两个都是整型,故运算结果是整型,结果是0,后者由于其中一个是浮点,另外一个也会在运算是被自动转换为浮点数,运算…… 题解列表 2024年08月06日 0 点赞 0 评论 302 浏览 评分:0.0
看我看我,我要宣布个事,我的很短,真的很短(c语言代码) 摘要:宏定义版,是不是很短 ```c #include #define ctof(c) 32 + (c * 9) / 5 int main() { for (int i = -100; i…… 题解列表 2024年08月06日 1 点赞 0 评论 356 浏览 评分:0.0
模拟计算器 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b; char w; scanf("%d %d %c",&a,&b,&w); …… 题解列表 2024年08月06日 0 点赞 0 评论 302 浏览 评分:0.0
1069: 二级C语言-寻找矩阵最值(c语言代码) 摘要:数组 ```c #include #include #define MAX 6 int main(){ int n,max=0,arr[MAX][MAX],x1=0,x2=0;…… 题解列表 2024年08月06日 0 点赞 0 评论 310 浏览 评分:0.0
1070: 二级C语言-成绩归类 2种解法(c语言代码) 摘要:使用三目运算符 ```c #include #define fun(a,b,c,date) date>=85?a++:(date>60?b++:c++) int main(){ i…… 题解列表 2024年08月06日 0 点赞 0 评论 446 浏览 评分:0.0
1173: 计算球体积 题解 摘要:```c #include #include int main() { double r, a = 0; while (scanf("%lf", &r) != EOF) …… 题解列表 2024年08月06日 0 点赞 0 评论 433 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int s(int n){ int ans=0; for(int i=1;i<n;i…… 题解列表 2024年08月06日 0 点赞 0 评论 542 浏览 评分:0.0
1680: 数据结构-八进制数 题解 摘要:```c #include #include typedef struct { int date[101]; int top; }stack;//栈 int isempt…… 题解列表 2024年08月07日 0 点赞 0 评论 418 浏览 评分:0.0
编写题解 2907: 不与最大数相同的数字之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N,a[100],sum=0,x=0; …… 题解列表 2024年08月07日 0 点赞 0 评论 364 浏览 评分:0.0
编写题解 2908: 白细胞计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; const int N=310; double a[N];in…… 题解列表 2024年08月07日 0 点赞 0 评论 259 浏览 评分:0.0