Loading...
什么是LemonLemon是一款非常简单易用的评测器,可以用来评测程序。编译Lemon下载源码:https://blog.kuludu.net/usr/u...
废话不多说,直接上代码。#include <cstdio> #include <algorithm> #define MAXN 1...
1. 简述线段树(英语:Segment tree)是一种二叉树形数据结构,用以储存区间或线段,并且允许快速查询结构内包含某一点的所有区间。一个包含n个区间...
#include <iostream> using namespace std; int n,maxn,a[5000],dp[5000]; ...
```cpp #include using namespace std;int k;struct Tree { int left,right; }my...