2018年1月的全部文章
@kidultff

PAT-A 真题- 1091. Acute Stroke

原题干:One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in each MRI slice, your job is to calculate the vol ...
  • 0
  • 1
@kidultff

使用广度优先算法(BFS)走迷宫

前面介绍广度优先算法的时候提及了多次走迷宫,我们就真正的走一次迷宫试试!要求如下:输入给出迷宫矩阵的行数和列数,并给出迷宫(使用点 (.) 表示路,使用星 (*) 表示障碍物,使用S表示起点,T表示终点)例如:5 5.    .&n ...
  • 0
  • 2
@kidultff

C语言-广度优先搜索(BFS)

0x00、仍然从迷宫说起昨天的文章(深度优先搜索),使用迷宫介绍了深度优先搜索,在介绍广度优先搜索前仍然以这个迷宫来介绍。在深度优先搜索中,我们使用了朝向一个方向,全部遍历的方法,遍历了迷宫,走到了终点,在广度优先搜索中我们采取的措施 ...
  • 0
  • 4
@kidultff

PAT-A 真题- 1103. Integer Factorization

原题干:The K-P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program to find the K-P factorization of N for any positive integers N, K and P. ...
  • 0
  • 0
@kidultff

C语言-深度优先搜索(DFS)

0x00、从迷宫说起    假设你现在处于一个这样的巨大的迷宫中,没有通讯工具,没有上帝视角,无法激活巴拉拉正能量,只能靠自己,从红色的脚印走到绿色的脚印,你会怎么走?相信你的答案一定是正确的。在没有地图的情况下,走 ...
  • 0
  • 3