题集
文章平均质量分 85
笨媛
主人太懒
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
最长公共子序列
#include <stdio.h> #include <string.h> #include <math.h> int leftup=1,left=2,up=3; int sum[110][110]; int pt[110][110]; char s[110][110]; int main() { int f(char s1[110],char s2[110]...原创 2022-07-05 14:26:48 · 174 阅读 · 0 评论 -
3D dungeon(三维BFS)
You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one unit north, south...原创 2020-02-27 20:58:34 · 539 阅读 · 0 评论 -
数据结构实验之栈与队列十:走迷宫
C - 数据结构实验之栈与队列十:走迷宫Description一个由n * m 个格子组成的迷宫,起点是(1, 1), 终点是(n, m),每次可以向上下左右四个方向任意走一步,并且有些格子是不能走动,求从起点到终点经过每个格子至多一次的走法数。Input 第一行一个整数T 表示有T 组测试数据。(T <= 110)对于每组测试数据:第一行两个整数n, m,表示迷宫有n * m ...原创 2020-02-10 16:30:29 · 226 阅读 · 0 评论
分享