题解列表

筛选

以自己理解写的,比较简单

摘要:解题思路:注意事项:尽量在b[y][x] = a[y][x]时把a[x][y]改掉参考代码:#include<stdio.h>int main(){     int x, y;     int a[3……

2939: 最匹配的矩阵(超详解)

摘要:```c #include #include #include #include // 计算矩阵A的子矩阵与矩阵B的差值绝对和 int calculate_diff(int **A……

水陆距离(朴素方法易懂版)

摘要:解题思路:这思路是优质题解的思路https://blog.dotcpp.com/a/8945思路如下①:若某陆地上下左右其中有一个是水域,则该陆地到水域的最短距离一定为1②:两个点的距离为x坐标相减的……

2787: 有一门课不及格的学生

摘要:解题思路:注意事项:有一门课几个另一门课一定不及格参考代码:#include <iostream>using namespace std;int main(){    int x,y;    cin ……

跟我徐海东

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f[100000];int a[100000];int count;int max=0,A;int c[100];int mai……

提取字符串之java

摘要:StringBuilder 是 Java 中用于处理字符串的可变类。它属于 java.lang 包,提供了一种比直接使用 String 类更有效的方式来构建和修改字符串。StringBuilder 对……

辗转相。。。。

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gcd(int a,int b){    if(a%b==0)    {        return b;    }else{ ……