2019年2月的全部文章
@kidultff

C++使用scanf/printf输入输出string

在oj系统,使用cin读取大规模stdin可能会超时,使用scanf会大大提高程序运行效率。scanf读取string:string s(30, '\0');    //字符串预先开辟30个char,全部初始化为\0 scanf("%s", & ...
  • 1
  • 0
@kidultff

PAT-A 真题 – 1137 Final Grading

For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no less than 200 points from the online program ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1138 Postorder Traversal

Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to output the first number of the postorder traversal sequence of the corresponding b ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1080 Graduate Admission

It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if you could write a program to automate the admission procedure.Each applicant wil ...
  • 0
  • 0