Description Link. 起床困难综合症 上树。 Solution 线段树维护,树剖上树。 具体题解有空再写,我要去睡觉了。 #include<bits/stdc++.h> typedef unsigned long long ULL; struct node { ULL one,zero ...
分类:
其他好文 时间:
2021-04-19 15:09:51
阅读次数:
0
Description 给定一场 \(n\) 个点,\(m\) 条边的有向图,你可以删去一些边,要求剩下的吐仍然强连通。求方案数 \(\bmod (10^9+7)\) 的值。 Hint \(1\le n\le 15, 0\le m\le n(n-1)\) Solution orz 神仙容斥 首先,根 ...
分类:
其他好文 时间:
2021-04-19 15:02:03
阅读次数:
0
一、 MongoDB 聚合管道 用途:表关联查询、数据统计。 db.COLLECTION_NAME.aggregate(AGGREGATE_OPERATION) 二、 MongoDB Aggregation 管道操作符与表达式 管道操作符 SQL 和 NOSQL 对比 Description $pr ...
分类:
数据库 时间:
2021-04-14 12:33:34
阅读次数:
0
` /** * @Description: base64字符串转化成图片 * @Param: * @return: * @throws Exception * @author: hw * @date: 2021/4/12 15:45 */ public static boolean Generate ...
分类:
其他好文 时间:
2021-04-13 12:22:14
阅读次数:
0
题目来源 Full Binary Tree Description In computer science,a binary tree is a tree data structure in which each node has at most two children. Consider an ...
分类:
其他好文 时间:
2021-04-13 12:02:15
阅读次数:
0
Seek the Name, Seek the Fame, POJ2752 description 给定一个长度为$n$ 的串,找出所有的$border$ \((n\le 400000)\) solution 直接用哈希模拟判断即可。 code #include<cstdio> #include<c ...
分类:
其他好文 时间:
2021-04-12 12:18:08
阅读次数:
0
Link Description 给出长为 \(n\) 的数列 \(\{a_n\}\),选出一个长度大于二的子序列,使得 \(\prod_{i=2}^K \binom{b_{i-1}}{b_i} \bmod 2=1\) 求方案数。 Solution 对组合数取模,容易想到卢卡斯定理,条件就转化为在二 ...
分类:
其他好文 时间:
2021-04-12 11:42:15
阅读次数:
0
Description 给定数组arr和整数num,求arr的连续子数组中满足:其最大值减去最小值的结果大于num的个数。请实现一个时间复杂度为O(length(arr))的算法。 Input 输入第一行为测试用例个数。每一个用例有若干行,第一行为数组,每一个数用空格隔开,第二行为num。 Outp ...
分类:
编程语言 时间:
2021-04-09 13:23:00
阅读次数:
0
Description 有 \(n\) 个数,\(m\) 次操作。 0 l r k 查询区间 \([l,r]\) 大于等于 \(k\) 的元素个数。 1 p k 将 \(a_p\) 修改为 \(k\)。 限制: \(1\le n,m\le5\times 10^5\) Solution 考虑分块,设块 ...
分类:
其他好文 时间:
2021-04-09 13:14:24
阅读次数:
0
部署nginx #1.先去查看仓库有没有镜像 root@fanwd-virtual-machine:/home# docker search nginx NAME DESCRIPTION STARS OFFICIAL AUTOMATED nginx Official build of Nginx. ...
分类:
其他好文 时间:
2021-04-08 13:07:20
阅读次数:
0