常规解法,易懂 解题思路:外循环控制消减次数,依照题目行与列依次寻找最小值,再相减,之后去除第二行第二列,控制外循环的变量自减注意事项:相减后的值仍然是非负整数(若这个值小于零,直接赋值0即可),程序结束前需要多输出一次位于第二行第二列的元素的值。参考代码:#includeusingnamespa 题解列表 2024年01月01日 0 点赞 0 评论 630 浏览 评分:9.9
打印蛇形矩阵(详细讲解) 摘要:对于这题的参数,只需要接收一个数字n因此,大的框架就很简单了:def printsnake(n): #中间的重要代码n=int(input())printsnake(n)很明显,这题是循环打印,…… 题解列表 2024年01月01日 0 点赞 0 评论 762 浏览 评分:9.9
思路最清晰的题解 摘要:解题思路:首先,我们观察输入。第一行是两个整数,然后还有n行,每行两个整数为了接收输入,基本的代码框架就出来了:l,n=map(int,input().split()) #使用input+s…… 题解列表 2023年12月31日 1 点赞 0 评论 611 浏览 评分:9.9
简单易懂的答案 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void paixu(int array[]){ int i; int j; int k; for(i …… 题解列表 2023年12月31日 0 点赞 0 评论 421 浏览 评分:8.0
孤独的骑士 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); getchar(); char ch; int a[100],…… 题解列表 2023年12月31日 0 点赞 0 评论 540 浏览 评分:9.9
2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin >>a; i…… 题解列表 2023年12月31日 0 点赞 0 评论 426 浏览 评分:9.9
编写题解 2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; if(a=…… 题解列表 2023年12月31日 0 点赞 0 评论 448 浏览 评分:9.9
编写题解 1783: 星期判断机 摘要:解题思路:注意事项:单词不要拼错!!!!!!!!!!!!!!!!!!!!参考代码:#include <bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2023年12月31日 0 点赞 0 评论 513 浏览 评分:9.9
2792: 三角形判断 摘要:解题思路:注意事项:三角形两边之和大于第三边参考代码:#include <iostream>using namespace std;int main(){ int a,b,c; cin >…… 题解列表 2023年12月31日 0 点赞 0 评论 595 浏览 评分:9.9
编写题解 2792: 三角形判断 摘要:解题思路:两边之和大于第三边注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin…… 题解列表 2023年12月31日 0 点赞 0 评论 483 浏览 评分:0.0