PAT-Advanced-Level https://pintia.cn/problem-sets/994805342720868352/problems/type/7 我的代码及测试数据。 编译环境:VS2015