【C语言】简单的输出 摘要:解题思路: 直接按照题目需求输出就行了 不过有一个需要注意的地方:就是数字之前除了占位符的空隙外,还有一个空格参考代码: 简单的输出:#include<stdio.h…… 题解列表 2022年02月07日 0 点赞 0 评论 394 浏览 评分:0.0
【C语言】简单的排序问题 摘要:解题思路: 这题考察的就是排序问题,不过这里的排序对象变成了字符串 所以我们要使用 strcmp(str1,str2); 如果str1 > str2 则函数返回 > 0 的值…… 题解列表 2022年02月07日 0 点赞 0 评论 447 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:其中有为最大公因数,最小公倍数的先讨论;eg 6 2然后是找最小数的因数再找共同的因数注意事项:参考代码:def f(a,b): yinshu=[] gys=[] q=0 …… 题解列表 2022年02月07日 0 点赞 0 评论 453 浏览 评分:0.0
Hifipsysta-1096-Minesweeper(C++代码)空间搜索法 摘要:```cpp #include using namespace std; const int MAXN=100; struct node{ int x; int y…… 题解列表 2022年02月07日 0 点赞 0 评论 488 浏览 评分:0.0
Hifipsysta-1106-奖学金(C++代码)结构体排序 摘要:```cpp #include #include using namespace std; const int MAXN=1000; struct student{ int…… 题解列表 2022年02月07日 0 点赞 0 评论 469 浏览 评分:0.0
做题记录2022.2.7(ac:100%) 摘要:解题思路:采用深度优先搜索和回溯 是8皇后问题的拓展和延伸注意事项:参考代码:def check(row, column, pattern): global w…… 题解列表 2022年02月07日 0 点赞 0 评论 491 浏览 评分:0.0
7行代码解决蛇行矩阵(Python) 摘要:## 解题思路: 用二维数组来解决比较简单粗暴,把所有的结果都存入数组中 首先初始化一下数组给他存个1,后面计算都是利用这个1进行 第一步先解决纵列,一个加数是上一列的数,另一个加数是第几次处理…… 题解列表 2022年02月08日 0 点赞 0 评论 421 浏览 评分:0.0
我的i,j为啥不用加1呢?求解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[6][6]; int i,j,n,max; sca…… 题解列表 2022年02月08日 0 点赞 2 评论 287 浏览 评分:0.0
又笨又直观的方法 摘要:解题思路:见注释注意事项:参考代码:#include<stdio.h>int judge(int a[],int n)//用于判断小朋友手里的糖是否相同{ int flog=a[0],k=0; for…… 题解列表 2022年02月08日 0 点赞 0 评论 360 浏览 评分:0.0
Hifipsysta-1734-二叉树遍历 摘要:```cpp #include #include using namespace std; const int MAXN = 27; struct node{ char dat…… 题解列表 2022年02月08日 0 点赞 0 评论 545 浏览 评分:0.0