pat甲级dfs
月下独喝
这个作者很懒,什么都没留下…
展开
-
甲级1103 Integer Factorization (dfs + 剪枝)
1103 Integer Factorization (30 分) 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 ...原创 2019-06-08 18:02:43 · 116 阅读 · 0 评论 -
pat甲级 1004 countleaves (二维向量容器存储树结构 + dfs + bfs)
1004 Counting Leaves (30 分) A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each input file contains on...原创 2019-06-09 12:07:54 · 110 阅读 · 0 评论