![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT甲级
初级数据结构和算法
一起去钓鱼
算法和机器学习,同时熟悉django、jquery 、bootsrap、react和微信小程序开发......
展开
-
C - Catch That Cow BFS 简单搜索 C++
Descrip Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100,000) on the same number line. Farmer John has tw原创 2020-11-03 16:43:48 · 128 阅读 · 0 评论 -
A - 棋盘问题 DFS [kuangbin带你飞]专题一 简单搜索
descripe 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <= 8 , k <= n 当为-1 -1时表示输入结束。 随后的n行描述了棋盘的形状:每行有n个字符,其中 # 表示棋原创 2020-11-01 12:49:48 · 98 阅读 · 0 评论 -
Fishing Master(贪心)
Problem Description Heard that eom is a fishing MASTER, you want to acknowledge him as your mentor. As everybody knows, if you want to be a MASTER’s apprentice, you should pass the trial. So when you find fishing MASTER eom, the trial is as follow: There a原创 2020-09-19 20:01:37 · 113 阅读 · 0 评论