![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
5.1 基本数学
小魚兒.
天下皆白,唯我独黑!
展开
-
5.1 PAT A1008 Elevator (20分)
1008 Elevator (20分) The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified ...原创 2020-03-28 14:42:35 · 140 阅读 · 0 评论 -
5.1 PAT A1104 Sum of Number Segments (20分)(数列子序列和——找规律)
1104 Sum of Number Segments (20分) Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence { 0.1, 0.2, 0.3, 0.4 }, we have 10 segmen...原创 2020-03-27 15:22:38 · 99 阅读 · 0 评论 -
5.2-5.3 最大公约数及最小公倍数(欧几里得算法——辗转相除法)
1818: 最大公约数 [Creator : Imported] Time Limit : 1.000 secMemory Limit : 32 MB Solved: 443Submit: 869Statistics Description 输入两个正整数,求其最大公约数。 Input 测试数据有多组,每组输入两个正整数。 Output 对于每组输入,请输出其最大公约数。 ...原创 2020-03-24 15:01:36 · 312 阅读 · 0 评论 -
5.1 PAT A1069 The Black Hole of Numbers (20分)(数字黑洞——基本数学)
1069 The Black Hole of Numbers (20分) For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order,...原创 2020-03-24 14:42:56 · 106 阅读 · 0 评论