二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[6][6]; scanf("%d",&n); for(int i=0;i<n;i++) { f…… 题解列表 2022年03月07日 0 点赞 0 评论 330 浏览 评分:0.0
二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int f; for(int i=-100;i<=150;i+=5) { f=32+(i*9/5); pri…… 题解列表 2022年03月07日 0 点赞 0 评论 305 浏览 评分:0.0
运用数学规律解题 摘要:参考代码:```c++#include<iostream>using namespace std;int main() { int i, j; int a, b, n; cin >> n; while…… 题解列表 2022年03月07日 0 点赞 0 评论 317 浏览 评分:0.0
二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,y; scanf("%lf",&x); if(x<0) { …… 题解列表 2022年03月07日 0 点赞 0 评论 282 浏览 评分:0.0
二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[10]; for(int i=0;i<10;i++) { scan…… 题解列表 2022年03月07日 0 点赞 0 评论 342 浏览 评分:0.0
栅格打印问题(思路简单) 摘要:解题思路:将每行不同的样式分为两种,在主函数中调用注意事项:考虑高度和宽度小于零的情况参考代码:#include<stdio.h>void b1(int b){ for(int i=1;i<=b…… 题解列表 2022年03月07日 0 点赞 0 评论 811 浏览 评分:9.9
双序列型动态规划,编辑距离问题的变种 摘要:这个题可看作[编辑距离](https://www.dotcpp.com/oj/problem2141.html "编辑距离")问题的变种,可以参考我在那一篇的题解,内附了leetcode视频题解[信息…… 题解列表 2022年03月07日 0 点赞 0 评论 635 浏览 评分:9.9
二级C语言-自定义函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(int m);double mypow(double x,int n);int …… 题解列表 2022年03月07日 0 点赞 0 评论 356 浏览 评分:0.0
二级C语言-公约公倍-辗转相除 摘要:解题思路:辗转相除注意事项:两种输入情况,一种 一次两个数字,一种一次一个数字,输入两次参考代码:def gcd(x, y): m = max(x, y) n = min(x, y) …… 题解列表 2022年03月07日 0 点赞 0 评论 909 浏览 评分:9.9
1097: 蛇行矩阵(c语言)(二维数组) 摘要:分析:解题思路:先算出第一列的数,再通过第一列的数依次算出后面的数,设间距为k,a[i][j] = a[i][j - 1] + k;注意事项:换行后的k值初始化为前一行同列的k值加一,引入变量b参考代…… 题解列表 2022年03月07日 0 点赞 1 评论 357 浏览 评分:9.9