2018年3月的全部文章
@kidultff

PAT-A 真题- 1070. Mooncake

原题干:Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region's culture. Now given the inventory a ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1065. A+B and C (64bit)

原题干:Given three integers A, B and C in [-263, 263], you are supposed to tell whether A+B > C.Input Specification:The first line of the input gives the positive number of test cases, T (<=10). Then T test cases follow, e ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1046. Shortest Distance

原题干:The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file contains one test case. For ea ...
  • 0
  • 2
@kidultff

PAT-A 真题- 1059. Prime Factors

原题干:Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *&hellip;*pm^km.Input Specification:Each input file contains one test case whic ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1093. Count PAT's

原题干:The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by the 3rd, the 4th, and the 6th characters.Now given an ...
  • 0
  • 0