![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pat甲
文章平均质量分 78
爱吃春天的秋刀鱼
这个作者很懒,什么都没留下…
展开
-
PTA甲 1101. Quick Sort (25)
题目描述There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then the elements less than the pivot are moved原创 2017-07-24 11:45:53 · 289 阅读 · 0 评论 -
PAT甲 1102. Invert a Binary Tree (25)
The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard so fuck off.Now it's your turn原创 2017-07-24 22:10:01 · 239 阅读 · 0 评论 -
PTA甲 1003. Emergency (25)
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the l原创 2017-07-24 23:10:29 · 386 阅读 · 0 评论 -
PTA甲 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 factorization of N for any positive原创 2017-07-25 13:40:29 · 196 阅读 · 0 评论 -
PTA甲 1104. Sum of Number Segments (20)
1104. Sum of Number Segments (20)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CAO, PengGiven a sequence of positive number原创 2017-07-25 17:09:26 · 291 阅读 · 0 评论 -
PTA甲 1105. Spiral Matrix (25)
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrixis filled in from the first element at the upper-left corner, then move in原创 2017-07-25 18:29:17 · 218 阅读 · 0 评论