题解列表

筛选

没找规律,暴力求解

摘要:#include<stdio.h> #include<math.h> #include<string.h> int main(){ long m; scanf("%ld",&m); ……

完数的判断

摘要:解题思路:注意事项:因数和数组要在循环内初始化参考代码:#include<stdio.h>int main() {    int n,i,j,t;    scanf("%d",&n);    for(……

并查集-合根植物(c++)

摘要:合根植物最多为m*n,每次合根使数量减1; 并查集将不同编号同一植物归为统一的根 ```cpp #include using namespace std; const int N=100……

python常规思路解题-蛇形矩阵

摘要:解题思路:首先找出规律,一共用到两个公式,在套用公式前初始化alist[0][0]=1①alist[i][0] = alist[i-1][1]-1②alist[i][j] = alist[i][j-1……

2085: 蓝桥杯算法提高VIP-P1003

摘要:解题思路:注意事项:参考代码:a = list(input().strip().split()) b = list(input().strip().split()) for i in a:   ……