摘要: 题目描述 对于一个长度问n的数组A,设第i个元素为Ai(0≤i 3 5 7 5 样例输出 1 hint 思路 逆向思考,总数减去不满足条件的数量。 既然 x+y+z using namespace std; const int maxm = 1 阅读全文
posted @ 2019-05-26 22:34 Acerkoo 阅读(255) 评论(0) 推荐(0) 编辑
摘要: T1 题意 "花盆" 给出n个点的坐标,以及时间差d。求区间内y坐标的最大值与最小值差大于等于d 的最小x轴区间长度。 (n=l1)满足条件的最小右端点为r2。 则: r2 =r1, 否则端点l1满足条件的最小右端点为r2,矛盾。 故: r具有单调性。 』 因此可在对n个点按x排序之后,枚举左端点, 阅读全文
posted @ 2019-05-26 20:23 Acerkoo 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 题目描述 You are supposed to play the rock paper scissors game. There are N players including you. This game consists of multiple rounds. While the rounds 阅读全文
posted @ 2019-05-26 20:21 Acerkoo 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 题目描述 The Super League of Paragons and Champions (SLPC) has been monitoring a plot by a corrupt politician to steal an election. In the past week, the 阅读全文
posted @ 2019-05-26 20:19 Acerkoo 阅读(194) 评论(0) 推荐(0) 编辑