摘要:
10.3 图的遍历 PAT A1013 Battle Over Cities (25分) It is vitally important to have all the cities connected by highways in a war. If a city is occupied by t 阅读全文
摘要:
9.2 二叉树的遍历 PAT A1020 Tree Traversals (25分) Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder 阅读全文
摘要:
8.1 深度优先搜索(DFS) PAT A1103 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 po 阅读全文
摘要:
PAT A1051 Pop Sequence (25分) Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are 阅读全文
摘要:
6.1 vector的常见用法详解 PAT A1039 Course List for Student (25分) Zhejiang University has 40000 students and provides 2500 courses. Now given the student name 阅读全文
摘要:
PAT A1069/B1019 The Black Hole of Numbers (20分) For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in n 阅读全文