摘要:
题目链接 维护一个区间最小值同时维护一个区间最小值的减法 #include <bits/stdc++.h> using namespace std; const int N = 100010; int a[N]; int n,k; struct node{ int l,r; int v,add; } 阅读全文
摘要:
A. AOE还是单体? 1.题意 直接看题目 2.思路 只有三种情况,一种是全都单体攻击,二是根据血量最多的直接使用群体技能,三是找到他们血量的中位数然后大于的用单体,最后全用群体技能,三者取一个min 3.代码 #include <bits/stdc++.h> #define int long l 阅读全文