摘要: https://codeforces.com/contest/1270/problem/B 思路:由样例发现公差为1的等差数列不满足条件 对于∀的l,r max(a)-min(a)=|r-l|<r-l+1 由此想到若任意相邻两项差的绝对值为1 则不满足条件 反过来若存在相邻两项差的绝对值大于1 这两 阅读全文
posted @ 2020-01-07 23:49 谨川 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 第一次五分钟过了cf A https://codeforces.com/contest/1270/problem/A 思路:谁拿到最大的牌即赢 官方: #include<bits/stdc++.h> #define ll long long using namespace std; const in 阅读全文
posted @ 2020-01-07 23:10 谨川 阅读(119) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-01-07 23:03 谨川 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-01-07 22:59 谨川 阅读(0) 评论(0) 推荐(0) 编辑