Given a sequence of K integers { N1, N2, …, NK }. A continuous subsequence is defined to be { Ni, Ni+1, …, Nj } where 1 <= i <= j <= K. The M[……]
月份:2020年7月
1009. Product of Polynomials (25)-PAT甲级真题
This time, you are supposed to find A*B where A and B are two polynomials.
Input Specification:
Each input file contains one test case. Each case oc[……]
1113. Integer Set Partition (25)-PAT甲级真题
Given a set of N (> 1) positive integers, you are supposed to partition them into two disjoint sets A1 and A2 of n1 and n2 numbers, respectively. Let S[……]
1114. Family Property (25)-PAT甲级真题(并查集)
This time, you are supposed to help us collect the data for family-owned property. Given each person’s family members, and the estate(房产)info under hi[……]
1112. Stucked Keyboard (20)-PAT甲级真题
On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear rep[……]
1110. Complete Binary Tree (25)-PAT甲级真题(BFS)
Given a tree, you are supposed to tell if it is a complete binary tree.
Input Specification:
Each input file contains one test case. For each case,[……]