树套树(splay套线段树) -AcWing 2476 本来想着用multiset套线段树的,结果一直T。改成常数小的splay才过,写完人都傻了^^ /* splay套线段树 */ #include <bits/stdc++.h> using namespace std; const int N ...
卡特兰数 \(C_{2n}^{n} \: C_{2n}^{n - 1} \: = \: \frac{(2n)!}{n! \: n!} \: - \: \frac{(2n)!}{(n - 1)! \: (n + 1)!} \: = \: \frac{(2n)! \: (n + 1) \: - \: ( ...
分类:
其他好文 时间:
2021-02-18 13:33:34
阅读次数:
0
Problem Description Kolya loves putting gnomes at the circle table and giving them coins, and Tanya loves studying triplets of gnomes, sitting in the ...
分类:
其他好文 时间:
2021-02-18 13:33:21
阅读次数:
0
有一个字符串。它里面有许多不同的字母,这些字母用数字来标记,而且每个字母最多出现10次。现在要求按一定的规则删除字符串中的重复部分:首先找到最短的重复部分(如果有多个就选择最左边的),然后删掉它的左半部分和左边的全部字母。求最终结果。 ...
分类:
其他好文 时间:
2021-02-18 13:14:40
阅读次数:
0
题目描述 For this problem, you will write a program that reads in a sequence of 32-bit signed integers. After each odd-indexed value is read, output the m ...
分类:
其他好文 时间:
2021-02-18 13:06:04
阅读次数:
0
https://www.acwing.com/problem/content/1143/ \(裸题\) #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); c ...
分类:
其他好文 时间:
2021-02-17 14:58:39
阅读次数:
0
1 #pragma once 2 3 #include <QtWidgets/QMainWindow> 4 #include "ui_QLogWidget.h" 5 #include <QQueue> 6 #include <QMutex> 7 #include <QWaitCondition> 8 ...
分类:
编程语言 时间:
2021-02-17 14:52:00
阅读次数:
0
在docker中运行fork进程的go程序时: /* UTS Namespace主要用来隔离nodename和domainname两个系统标识。在UTS namespace里,每个namespace允许有自己的hostname。 系统API 中的clone()创建新的进程。根据填入的参数来判断哪些n ...
分类:
其他好文 时间:
2021-02-16 12:43:00
阅读次数:
0
题意: 给定长度为 \(n\) 的序列 \(x\)。 求 \(\sum^{n}_{i=1} \sum^{n}_{j=1} \sum^{n}_{k=1} (x_{i}\ \& \ x_{j})\times (x_{j}\ |\ x_{k})\text{}\) 想法: 首先进行化简: . \(\sum^ ...
分类:
其他好文 时间:
2021-02-16 12:13:36
阅读次数:
0
Problem Description Due to the increase in the number of students of Berland State University it was decided to equip a new computer room. You were gi ...
分类:
其他好文 时间:
2021-02-16 12:07:01
阅读次数:
0