![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT_ADVANCE_LEVEL
wingwingtwo
瞎玩儿
展开
-
1069. The Black Hole of Numbers (20)
额,输入的可能不是四位数字//注意这道题的输入可能不是4位数字,比如输入1,能否正确解读为0001 #include #include #include #include #include using namespace std; void deal(char *c,char*a,char*b) { sort(c+0,c+4); strcpy(b,c); reverse(c+0,c+4);原创 2016-03-09 15:52:34 · 185 阅读 · 0 评论 -
1091. Acute Stroke(30)
看到这道最先想到的是数连通集,个人喜好,利用递归的方式进行深度遍历,可惜最后两个用例 段错误 1.深度遍历. 代码如下: #include #include #include using namespace std; const int maxm = 1300; const int maxn = 130; const int maxl = 62; const int xc[] = {-1原创 2016-03-09 15:05:42 · 385 阅读 · 0 评论