Modular Stability 思路 \((((x \mod a_1) \mod a_2) …… \mod a_{k - 1}) \mod a_{k} = (((x \mod p_1) \mod p_2) …… \mod p_{k - 1}) \mod p_{k}\),其中$p$数组是$a$数组 ...
分类:
其他好文 时间:
2020-06-19 15:56:40
阅读次数:
41
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int SIZE = 1e5 + 5; class Treap { struct Node { int l, r; int val, dat; //节点 ...
分类:
其他好文 时间:
2020-06-19 13:40:37
阅读次数:
40
字符串的重点内容: # 将int转化为二进制的最少位数 a = 2 a1 = a.bit_length() print(a1) a2 = 3 a3 = a2.bit_length() print(a3) # bool >int的例子(重点理解) while true: pass while 1: # ...
分类:
其他好文 时间:
2020-06-18 23:21:09
阅读次数:
71
令$a_{i,j}(j\le i)$表示第i个人的方案中给第j个人$a_{i,j}$的钱,有以下性质: 1.如果第j个人一定同意(否则就会死)第i个人的方案,那么$a_{i,j}=0$(容易发现一定同意的人就是在上一个不是-1之后的人) 2.否则$a_{i,j}=1+\max_{1\le t<i}a ...
分类:
其他好文 时间:
2020-06-18 19:48:12
阅读次数:
53
介绍Linux系统是一个典型的多用户操作系统,不同的用户处于不同的地位,为了保护系统的安全性,linux系统对于不同用户访问同一个文件或目录做了不同的访问控制。而这种控制就是通过权限实现的,本节课我们介绍linux权限的使用一、基本权限基本权限的介绍Linux中每个文件或目录都有3个基本权限位,控制三种访问级别用户的读、写、执行,所以linux的基本权限位一共有9个。基本权限位和另外3个可以影响可
分类:
系统相关 时间:
2020-06-18 16:27:12
阅读次数:
74
1. JavaScript按位运算符 Bit operators work on 32 bits numbers. 2. JavaScript按位运算符~ 值得注意的是,在JavaScript中,~5的值是-6,而不是10。 The examples above uses 4 bits unsign ...
分类:
编程语言 时间:
2020-06-18 12:59:32
阅读次数:
45
1.When a lawyer says "objection" during court, he is telling the judge that he thinks his opponent violated a rule of procedure. The judge's ruling de ...
分类:
其他好文 时间:
2020-06-18 11:00:24
阅读次数:
49
递归 #include <bits/stdc++.h> #define LL long long #define Pi acos(-1.0) #define INF 2147483646 #define eps 1e-9 #define MS 100009 #define mss 17 using ...
分类:
其他好文 时间:
2020-06-17 20:23:20
阅读次数:
69
大多数计算机用一个字节表示一个字符,数字 或 其他字符。 数据存储以"字节"(Byte)为单位,数据传输以"位"(bit,又名"比特")为单位,一个位就代表一个0或1(即二进制),每8个位(bit,简写为b)组成一个字节(Byte,简称为B),是最小一级的信息单位。 1B(字节)== 8位二进制 1 ...
分类:
其他好文 时间:
2020-06-17 19:46:51
阅读次数:
116