- 博客(3)
- 收藏
- 关注
原创 PAT甲级03-树2 List Leaves (25 分)
03-树2 List Leaves (25 分)Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.Input Specification:Each input file contains one test case. For each ...
2018-11-20 17:09:27 169
原创 PAT练习题
1001 A+B Format (20)(20 分)Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Inp...
2018-07-24 10:46:05 1345
原创 用回溯法解决圆排列问题
教材是用的王晓东的《计算机算法设计与实现》第四版,c++版一下是问题描述:算法实现:/***能确定一个正确的想法(即每种情况都能考虑到,然后找一个最简单而准确的方式表达出来) ***/ #include<iostream>//此问题没有要求相邻的圆必须相切 #include<math.h>using namespace std;class Circle{ friend fl...
2018-06-29 11:45:43 3968 6
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人