2019年3月的全部文章
@kidultff

C++实现二阶Runge-Kutta算法

算法描述详见《微分方程数值解》或《数值分析》直接上代码:/** * Runge-Kutta Algorithm * @author Kidultff * @Time 2019-03-15 15:15 */ #include <bits/stdc++.h> using namespace& ...
  • 0
  • 1
@kidultff

PAT 2019甲级春季考试真题4 Structure of a Binary Tree

Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, a binary tree can be uniquely determined.Now given a sequence of statements about the structure of th ...
  • 0
  • 0
@kidultff

PAT 2019甲级春季考试真题3 Telefraud Detection

Telefraud(电信诈骗) remains a common and persistent problem in our society. In some cases, unsuspecting victims lose their entire life savings. To stop this crime, you are supposed to write a program to detect those suspects fr ...
  • 0
  • 0
@kidultff

PAT 2019甲级春季考试真题2 Anniversary

Zhejiang University is about to celebrate her 122th anniversary in 2019. To prepare for the celebration, the alumni association (校友会) has gathered the ID's of all her alumni. Now your job is to write a program to count t ...
  • 0
  • 0
@kidultff

PAT 2019甲级春季考试真题1 Sexy Primes

Sexy primes are pairs of primes of the form (p, p+6), so-named since "sex" is the Latin word for "six". (Quoted from http://mathworld.wolfram.com/SexyPrimes.html)Now given an integer, you are suppose ...
  • 0
  • 0