摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/1071785884776722432 代码 #include <iostream> #include <string> using namespace std; int re 阅读全文
posted @ 2021-12-12 21:43 Infinite_V胜 阅读(31) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/1071785779399028736 代码 #include <iostream> using namespace std; int result[1000]={0}; in 阅读全文
posted @ 2021-12-12 21:08 Infinite_V胜 阅读(37) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/1071785664454127616 代码 #include <iostream> #include <algorithm> using namespace std; int 阅读全文
posted @ 2021-12-12 19:59 Infinite_V胜 阅读(35) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805278589960192 思路 主元比它前面的所有数都要大,比它后面的所有数都要小。 那么只要跟它前面的最大值和后面的最小值比,随着判断主元位置的移动,最大值和最小 阅读全文
posted @ 2021-12-12 18:32 Infinite_V胜 阅读(29) 评论(0) 推荐(0)