随笔分类 - 贪心
摘要:AtCoder Beginner Contest 185 A - ABC Preparation Solution 输出最小值 #include <iostream> #include <algorithm> using namespace std; int main() { int a1, a2,
阅读全文
摘要:"Codeforces Round 620 (Div. 2)" D. Shortest and Longest LIS 题解: 贪心即可,对于最短序列,我们尽可能用可用的最大数字放入序列中,对于最长序列,我们尽可能用可用的最小数组放入序列即可,再处理序列时,当满足当前防止变化规律的符号直接防止,如果
阅读全文

浙公网安备 33010602011771号