摘要: A 模拟题 //#include<bits/stdc++.h> #include<algorithm> #include<iostream> #include<cstdio> #include<cstring> #define lson rt<<1 //左孩子 #define inf 0x3f3f3 阅读全文
posted @ 2021-10-14 10:16 WhyAndy 阅读(33) 评论(0) 推荐(0)
摘要: 题目链接:https://ac.nowcoder.com/acm/contest/11215/H (一)预备知识: (1)upper_bound( begin,end,num): 从数组的begin位置到end-1位置二分查找 第一个大于num的数字,找到返回该数字的地址, 不存在则返回end。通过 阅读全文
posted @ 2021-10-06 22:50 WhyAndy 阅读(85) 评论(0) 推荐(0)