题解列表

筛选

记忆化搜索解法

摘要:``` import java.util.Arrays; import java.util.Scanner; public class Main { static int N;……

编写题解 2966: 最大质因子序列

摘要:解题思路:先找因数,在判断是不是质数。注意事项:参考代码:#include <stdio.h>#include <math.h>int yinshu(int c){ for (int i = 1; i……

2775: 等差数列末项计算python题解

摘要:解题思路:等差数列通项公式注意事项:先算公差参考代码:a1, a2, n = map(int, input().split()) d = a2-a1 an = a1+(n-1)*d print(……

dfs标记路径

摘要:参考代码:import java.util.Scanner;public class Main {static int[][] g=new int[51][51];//地图static int[][]……

遍历直接秒

摘要:解题思路:你可能被题目吓到,题目要求 &#39;?&#39; 可以被随时替代,那也就是说明:&#39;00、11、0?、1?、?1、?0、??&#39;都是正确的,那我们只需要进行步长为2的遍历,对满……