
线段树
西伯利亚松鼠
退役ACMer,退役MOer
展开
-
CodeCraft-19 and Codeforces Round #537 (Div. 2) C. Creative Snap 线段树动态开点
C. Creative Snapsolution线段树动态开点模板题code#define SiberianSquirrel return#define CuteKiloFish 0;#include<bits/stdc++.h>using namespace std;using ll = long long;const ll MOD = ll(1e9 + 7);const ll INF = ll(1e18 + 10);const int inf = int(0x3f3f原创 2021-05-08 15:08:32 · 713 阅读 · 0 评论 -
Educational Codeforces Round 36 (Rated for Div. 2) E. Physical Education Lessons 线段树动态开点
E. Physical Education Lessons放一个线段树动态开点的模板:code/*SiberianSquirrel*//*CuteKiloFish*/#include <bits/stdc++.h>using namespace std;using ll = long long;const ll MOD = ll(1e9 + 7);const ll INF = ll(1e18 + 10);const int N = int(1.5e7 + 10);//VAR原创 2021-05-08 10:53:56 · 780 阅读 · 1 评论 -
【模板】线段树 1 洛谷P3372 线段树
【模板】线段树 1code/*Siberian Squirrel*//*Cute KiloFish*/#include<bits/stdc++.h>#define IO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)#define ACM_LOCALusing namespace std;typedef long long ll;const double PI = acos(-1);const double eps原创 2021-03-14 21:19:24 · 671 阅读 · 0 评论 -
Just a Hook HDU-1698 线段树
Just a Hookcode/*Siberian Squirrel*//*Cute KiloFish*/#include<bits/stdc++.h>#define IO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)#define ACM_LOCALusing namespace std;typedef long long ll;const double PI = acos(-1);const double e原创 2021-03-14 21:19:10 · 674 阅读 · 0 评论 -
敌兵布阵 HDU-1166 线段树
敌兵布阵code/*Siberian Squirrel*//*Cute KiloFish*/#include<bits/stdc++.h>#define IO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)#define ACM_LOCALusing namespace std;typedef long long ll;const double PI = acos(-1);const double eps = 1e原创 2021-03-14 21:19:04 · 651 阅读 · 0 评论 -
I Hate It HDU-1754 线段树
I Hate Itcode/*Siberian Squirrel*//*Cute KiloFish*/#include<bits/stdc++.h>#define IO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)#define ACM_LOCALusing namespace std;typedef long long ll;const double PI = acos(-1);const double eps原创 2021-03-14 21:18:30 · 633 阅读 · 0 评论