![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
文章平均质量分 95
D1termination
这个作者很懒,什么都没留下…
展开
-
1095 Cars on Campus (30 分)
1095 Cars on Campus (30 分)Zhejiang University has 8 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the gate. Now with all the information available, you are supposed to tell, at any s原创 2023-03-29 14:47:31 · 85 阅读 · 1 评论 -
PAT 1160 Forever
1160 Forever1160 Forever (20 分)Input Specification:Output Specification:Sample Input:Sample Output:题意思路技巧谬误代码1160 Forever (20 分)“Forever number” is a positive integer AAA with KKK digits, satisfying the following constrains:the sum of all the digits of原创 2022-03-01 14:37:16 · 182 阅读 · 0 评论 -
1151 LCA in a Binary Tree (30 分)
1151 LCA in a Binary Tree (30 分)The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants.Given any two nodes in a binary tree, you are supposed to find their LCA.Input Specification:Each i原创 2022-02-26 23:11:18 · 49 阅读 · 0 评论