摘要: 又双叒叕垫底, A 旅行日记 判断一下即可?注意一下细节 code #include<cstring> #include<cstdio> #include<algorithm> using namespace std; inline int read(){ int x = 0; char c = g 阅读全文
posted @ 2022-07-25 22:06 Chen_jr 阅读(73) 评论(2) 推荐(1)
摘要: 打了一半就跑了,,,垫底垫底 A. 活动投票 摩尔投票,想象让投票不同的两个人同归于尽,选票过半的人的支持者肯定有活下来的 code #include<cstdio> #include<cstring> #include<algorithm> using namespace std; inline 阅读全文
posted @ 2022-07-25 12:03 Chen_jr 阅读(159) 评论(0) 推荐(0)
摘要: A. 学数数 单调栈 + 排序 + 前缀和 + 二分 单调栈应该是左边乘右边,考场脑抽写成长度。 对$lowe_bound$,$upper_bound$使用不熟 code #include<cstdio> #include<cstring> #include<algorithm> using nam 阅读全文
posted @ 2022-07-25 08:19 Chen_jr 阅读(49) 评论(0) 推荐(1)