今天没有新动态
@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 *…*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
@kidultff

PAT-A 真题- 1042. Shuffling Machine

原题干:Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gamblers by perfor ...
  • 0
  • 0
@kidultff

浅谈C++ vector作为参数传入函数

例如main函数有一个vector需要使用deal函数来处理内部数据,有下面三种办法:1、直接传入void deal(vector<int> v){     v.push_back(0); } main(){     vector<int> vec; & ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1009. Product of 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 information of a polynomial: K N ...
  • 0
  • 0