PAT 甲级 1070 Mooncake (25 分)(结构体排序,贪心,简单)
摘要:1070 Mooncake (25 分) 1070 Mooncake (25 分) 1070 Mooncake (25 分) Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival
阅读全文
posted @
2019-10-31 13:07
蔡军帅
阅读(290)
推荐(0) 编辑
PAT 甲级 1070 Mooncake (25 分)(结构体排序,贪心,简单)
摘要:1070 Mooncake (25 分) Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festiv...
阅读全文
posted @
2019-10-31 13:07
蔡军帅
阅读(114)
推荐(0) 编辑
PAT 甲级 1069 The Black Hole of Numbers (20 分)(内含别人string处理的精简代码)
摘要:1069 The Black Hole of Numbers (20 分) For any 4-digit integer except the ones with all the digits being th...
阅读全文
posted @
2019-10-31 12:51
蔡军帅
阅读(71)
推荐(0) 编辑
PAT 甲级 1069 The Black Hole of Numbers (20 分)(内含别人string处理的精简代码)
摘要:1069 The Black Hole of Numbers (20 分) 1069 The Black Hole of Numbers (20 分) 1069 The Black Hole of Numbers (20 分) For any 4-digit integer except the o
阅读全文
posted @
2019-10-31 12:51
蔡军帅
阅读(274)
推荐(0) 编辑
PAT 甲级 1068 Find More Coins (30 分) (dp,01背包问题记录最佳选择方案)***
摘要:1068 Find More Coins (30 分) Eva loves to collect coins from all over the universe, including some other pl...
阅读全文
posted @
2019-10-29 23:12
蔡军帅
阅读(136)
推荐(0) 编辑
PAT 甲级 1068 Find More Coins (30 分) (dp,01背包问题记录最佳选择方案)***
摘要:1068 Find More Coins (30 分) 1068 Find More Coins (30 分) 1068 Find More Coins (30 分) Eva loves to collect coins from all over the universe, including s
阅读全文
posted @
2019-10-29 23:12
蔡军帅
阅读(355)
推荐(0) 编辑
PAT 甲级 1067 Sort with Swap(0, i) (25 分)(贪心,思维题)*
摘要:1067 Sort with Swap(0, i) (25 分) Given any permutation of the numbers {0, 1, 2,..., N−1}, it is easy to s...
阅读全文
posted @
2019-10-26 22:16
蔡军帅
阅读(140)
推荐(0) 编辑
PAT 甲级 1067 Sort with Swap(0, i) (25 分)(贪心,思维题)*
摘要:1067 Sort with Swap(0, i) (25 分) 1067 Sort with Swap(0, i) (25 分) 1067 Sort with Swap(0, i) (25 分) Given any permutation of the numbers {0, 1, 2,...,
阅读全文
posted @
2019-10-26 22:16
蔡军帅
阅读(513)
推荐(0) 编辑
PAT 甲级 1066 Root of AVL Tree (25 分)(快速掌握平衡二叉树的旋转,内含代码和注解)***
摘要:1066 Root of AVL Tree (25 分) 1066 Root of AVL Tree (25 分) 1066 Root of AVL Tree (25 分) An AVL tree is a self-balancing binary search tree. In an AVL t
阅读全文
posted @
2019-10-25 22:58
蔡军帅
阅读(461)
推荐(0) 编辑
PAT 甲级 1066 Root of AVL Tree (25 分)(快速掌握平衡二叉树的旋转,内含代码和注解)***...
摘要:1066 Root of AVL Tree (25 分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heigh...
阅读全文
posted @
2019-10-25 22:58
蔡军帅
阅读(158)
推荐(0) 编辑
微积分基本公式(牛顿——莱布尼茨公式)的几何解释
摘要:牛顿-莱布尼茨公式的内容是一个连续函数在区间 [ a,b ] 上的定积分等于它的任意一个原函数在区间[ a,b ]上的增量。 定义 定义
阅读全文
posted @
2019-10-15 10:52
蔡军帅
阅读(6056)
推荐(0) 编辑
微积分基本公式(牛顿——莱布尼茨公式)的几何解释
摘要:牛顿-莱布尼茨公式的内容是一个连续函数在区间 [ a,b ] 上的定积分等于它的任意一个原函数在区间[ a,b ]上的增量。定义
阅读全文
posted @
2019-10-15 10:52
蔡军帅
阅读(1685)
推荐(0) 编辑
PAT 甲级 1065 A+B and C (64bit) (20 分)(溢出判断)*
摘要:1065 A+B and C (64bit) (20 分) Given three integers A, B and C in [−], you are supposed to tell whether A+B...
阅读全文
posted @
2019-10-08 20:44
蔡军帅
阅读(125)
推荐(0) 编辑
PAT 甲级 1065 A+B and C (64bit) (20 分)(溢出判断)*
摘要:1065 A+B and C (64bit) (20 分) 1065 A+B and C (64bit) (20 分) 1065 A+B and C (64bit) (20 分) Given three integers A, B and C in [−], you are supposed to
阅读全文
posted @
2019-10-08 20:44
蔡军帅
阅读(197)
推荐(0) 编辑
PAT 甲级 1064 Complete Binary Search Tree (30 分)(不会做,重点复习,模拟中序遍历)
摘要:1064 Complete Binary Search Tree (30 分) 1064 Complete Binary Search Tree (30 分) 1064 Complete Binary Search Tree (30 分) A Binary Search Tree (BST) is
阅读全文
posted @
2019-10-08 20:29
蔡军帅
阅读(284)
推荐(0) 编辑
PAT 甲级 1064 Complete Binary Search Tree (30 分)(不会做,重点复习,模拟中序遍历)...
摘要:1064 Complete Binary Search Tree (30 分) A Binary Search Tree (BST) is recursively defined as a binary tree...
阅读全文
posted @
2019-10-08 20:29
蔡军帅
阅读(85)
推荐(0) 编辑