文章 2023-06-19 来自:开发者社区

【PAT甲级 - C++题解】1051 Pop Sequence

1051 Pop SequenceGiven a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible p....

文章 2023-06-19 来自:开发者社区

【PAT甲级 - C++题解】1085 Perfect Sequence

1085 Perfect SequenceGiven a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the maximum and minimum numbers in ....

文章 2023-06-18 来自:开发者社区

【PAT甲级 - C++题解】1140 Look-and-say Sequence

1140 Look-and-say SequenceLook-and-say sequence is a sequence of integers as the following:D, D1, D111, D113, D11231, D112213111, ...where D is in [0, 9] except 1. The (n+1)st number is a kind of des....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

开发与运维

集结各类场景实战经验,助你开发运维畅行无忧

+关注
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等