题解列表

筛选

滑雪(搜索)

摘要:解题思路:记忆化搜索 ```cpp ·这道题需要求出二维数组中最长的下降路径,可以使用记忆化搜索来解决。 ·我们可以定义一个二维数组f[x][y]表示从坐标(x,y)出发所能到达的最长下降路径,……

2851: 合法C标识符

摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() {     c……

2850: 输出亲朋字符串

摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() {     char ……

2849: 石头剪子布

摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() {     i……

2848: 基因相关性

摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() {     c……