摘要:
#include<bits/stdc++.h> using namespace std; #define int long long #define all(a) (a).begin(), (a).end() typedef __int128_t i128; typedef __uint128_t 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; #define ls u<<1 #define rs u<<1|1 const int N = 3e5+7; int a[N]; struct node{ int l,r,tag,odd[2],even[2]; 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define mem(a, b) memset((a), (b), sizeof(a)) #define inf 阅读全文
摘要:
今天学了重链剖分,正好可以补题 描述 You are given a tree with N nodes. The tree’s nodes are numbered 1 through N and its edges are numbered 1 through N − 1. Each edge 阅读全文
摘要:
描述 In this problem, "lattice points" in the plane are points with integer coordinates. In order to contain his cows, Farmer John constructs a triangul 阅读全文
摘要:
1471: Wall 描述 Once upon a time there was a greedy King who ordered his chief Architect to build a wall around the King's castle. The King was so greed 阅读全文