Feature:刷题
@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
@kidultff

PAT-A 真题 – 1144 The Missing Number

Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.Input Specification:Each input file contains one test case. For each case, the first line gives a positive integer N (≤105). T ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1012 The Best Rank

To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algrbra), and E - En ...
  • 0
  • 0
@kidultff

PAT-A 真题 - 1002 A+B for Polynomials

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 occupies 2 lines, and each line contains the informatio ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1151 LCA in a Binary Tree

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 input file ...
  • 0
  • 0