二级C语言-计负均正 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[20]; int i; int s=0; int sum=0; double c=0; for(i=…… 题解列表 2023年03月10日 0 点赞 0 评论 168 浏览 评分:0.0
求对角线格子问题_注释版 摘要:```cpp //#include #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #inclu…… 题解列表 2023年03月10日 0 点赞 0 评论 210 浏览 评分:0.0
题解 1114: C语言考试练习题_排列(c语言) 摘要:解题思路:注意事项: 有被无语到,jl题目还限制输出顺序……发这个完全就是想吐槽一下这sb题目 法一为适应题目顺序的解,法二为该问题的通解参考代码:法一:#include<stdio.h>…… 题解列表 2023年03月10日 0 点赞 1 评论 193 浏览 评分:0.0
字符串匹配问题(strs) 摘要:解题思路:将字符用数字来代替注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//定义字符数组 和 数字数组 // 数字的优先级为0,1,2,3…… 题解列表 2023年03月10日 0 点赞 0 评论 300 浏览 评分:0.0
二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int c; int f; for(c=-100;c<=150;c=c+5) { f= 32 + c* 9/5…… 题解列表 2023年03月10日 0 点赞 0 评论 314 浏览 评分:0.0
无参宏定义 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define m a%bint main(){ int a,b; scanf("%d%d",&a,&b); printf("%d",m…… 题解列表 2023年03月10日 0 点赞 0 评论 139 浏览 评分:0.0
二级C语言-成绩归类 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100]; int A=0,B=0,C=0; for(int i=1;i<=100;i++) { …… 题解列表 2023年03月10日 0 点赞 0 评论 120 浏览 评分:0.0
二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:C语言 abs() 函数用于求整数的绝对值。头文件:math.h 或者 stdlib.h语法/原型:int abs(int n);n 表示要求绝对值的数。返回值:参数的绝对值。参考…… 题解列表 2023年03月10日 0 点赞 0 评论 99 浏览 评分:0.0
一定注意行和列都大于0,否则没有意义 摘要:解题思路:注意事项:参考代码:m,n=map(int,input().strip().split()) if m>=1 and n>=1: for l in range(m): …… 题解列表 2023年03月10日 0 点赞 0 评论 148 浏览 评分:0.0
杨辉三角—数组版本C++ 摘要:解题思路:构造一个二维矩阵存放杨辉三角的数值,然后直接查找输出指定位置的数据即可注意事项:但是使用int类型构造二维数组时,总是报错,提示数组越界,偶然间看到用long long 来代替,问题得到解决…… 题解列表 2023年03月10日 0 点赞 0 评论 165 浏览 评分:0.0