摘要:
HDU 1754 I Hate It(线段树) 这道题是线段树的简单版~ 话不多说,直接上代码! AC代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=2e5+5; int s 阅读全文
posted @ 2019-11-07 16:46
清蒸母猪
阅读(97)
评论(0)
推荐(0)
摘要:
HDU1166 敌兵布阵(线段树) 本题是线段树的基本模板题,包含以下几部分: 1、修改值 2、查询区间和 AC代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=1e5+5; 阅读全文
posted @ 2019-11-07 16:34
清蒸母猪
阅读(267)
评论(0)
推荐(0)