「JSOI2013」贪心的导游 "传送门" 多次询问区间内%一个数的最大值 ~~我们不妨设这个数为M_sea~~ 值域比较小所以考虑分块维护。 我们观察到对于给定的一个 $p$ ,函数 $y = x \% p$ 是分段的且在各段内递增,所以我们可以先分块,记一下每个块内小于等于某个数的最大值,记为 ...
分类:
Web程序 时间:
2020-02-08 17:42:24
阅读次数:
72
Nodes that support the various features described above can be formed into a mesh network. An illustration of a mesh network is shown in Figure 2.8 be ...
分类:
其他好文 时间:
2020-02-08 17:35:51
阅读次数:
75
The functionality of nodes is determined by the features that they support. All nodes have the ability to transmit and receive mesh messages. Nodes ca ...
分类:
其他好文 时间:
2020-02-08 17:33:33
阅读次数:
86
https://www.luogu.com.cn/blog/ShineEternal/linear-equation-group #include<cstdio> #include<cmath> #include<iostream> using namespace std; double a[105 ...
分类:
其他好文 时间:
2020-02-08 13:18:04
阅读次数:
70
``` kubectl get pods -n kube-system -o wide/yaml/json kubectl get nodes kubectl get ns kubectl get deployment kubectl api-resources kubectl create nam... ...
分类:
其他好文 时间:
2020-02-07 23:56:42
阅读次数:
108
1 """ 2 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. ...
分类:
其他好文 时间:
2020-02-07 18:47:24
阅读次数:
67
例如增加2G虚拟内存,操作如下:[root@gamedb ~]# free -m[root@gamedb tmp]# dd if=/dev/zero of=/tmp/big_swap bs=1024 count=2000000[root@gamedb tmp]# du -sh /tmp/big_sw ...
分类:
系统相关 时间:
2020-02-07 18:37:46
阅读次数:
86
1 """ 2 Given a linked list, swap every two adjacent nodes and return its head. 3 You may not modify the values in the list's nodes, only nodes itself ...
分类:
其他好文 时间:
2020-02-07 18:27:44
阅读次数:
58
Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (inclusive). The binary search tree is g ...
分类:
其他好文 时间:
2020-02-07 10:19:29
阅读次数:
70
网络结构:对象: 节点,端点 (nodes, vertices) N交互:链接,边 (links,edges) E系统:网络,图,图谱 (network,graph) G(N,E)Graph与Network的区别:Network:真实存在的系统,如网络Web,社交网络social network,新... ...
分类:
Web程序 时间:
2020-02-07 01:31:45
阅读次数:
120