摘要:
"题目传送门" //res tp hdu 单调栈的经典问题 维护区间的左右边界计算面积即可 include include include using namespace std; typedef long long ll; const int L = 100010; ll H[L]; int n; 阅读全文
摘要:
"题目传送门" //res tp nowcoder dfs 先将所有人都归于一队,之后从一队中取出人放置到另一个队。 include include include using namespace std; typedef long long ll; int n; const int L = 30; 阅读全文
摘要:
A. Remove a Progression 签到题,易知删去的为奇数,剩下的是正偶数数列。 B. Yet Another Crosses Problem n*m存在上界,以一维数组储存二维数组。统计各个行(列)的白块数量,找出其中数量最少的行(列)(注:不一定只有一行(列)的白块最少)。输出结果 阅读全文