Feature:PAT-甲级
@kidultff

PAT-A 真题- 1006. Sign In and Sign Out

原题干:At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you are supposed to find ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1005. Spell It Right

原题干:Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file contains one test case. Each case occupies one line ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1052. Linked List Sorting

原题干:A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key and a Next pointer to the next structure. Now given a linked ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1004. Counting Leaves

原题干:A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.InputEach input file contains one test case. Each case starts with a line containing 0 < N < 10 ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1087. All Roads Lead to Rome

原题干:Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness.Input Specification:Each input file contains one t ...
  • 0
  • 0