Feature:PAT-甲级
@kidultff

PAT-A 真题 – 1108 Finding Average

The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not be legal. A legal input is a real number i ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1114 Family Property

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 his/her own name, we need to know the size of each family, and the averag ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1147 Heaps

In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of P is either greater than or equal to (in a max heap) or le ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1146 Topological Order

This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed graph? Now you are supposed to write a program to test each of the options.Input Sp ...
  • 0
  • 1
@kidultff

PAT-A 真题 – 1145 Hashing - Average Search Time

The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys from the table and output the average search time (the number of compa ...
  • 0
  • 0