B. Filling the Grid 分行和列进行染色,扫完图以后没有被染色的格子数,就是对答案产生的贡献值,wa了一发,因为没看清样例,会有冲突情况产生,这种情况下的答案是0 C. Primes and Multiplication 定义了三种操作 g(x,p)、 f(x,y)、prime(x) ...
分类:
其他好文 时间:
2019-10-02 14:28:27
阅读次数:
72
<! more abs :绝对值 ceil/floor :向上/向下取整 round :四舍五入 sqrt :开平方 pow :取幂(N的M次方) max/min :最大值和最小值 PI :获取圆周率 random :0~1随机小数 扩展 :Math.round(Math.random() (m n ...
分类:
编程语言 时间:
2019-10-01 20:58:03
阅读次数:
116
逆元板子 杨辉三角 杨辉三角第$i$行第$j$列($i$从0开始)即为$C_i^j$ 线性逆元 cpp inv[1]=1; for(int i=2;i ...
分类:
其他好文 时间:
2019-10-01 20:33:58
阅读次数:
111
最近对区块链的共识算法比较感兴趣,也在尝试着使用JAVA实现它。进度不是很快,日积月累吧,目前在写POW, RAFT 。 POW还有一小块部分没有搞明白,还在搜索资料中。 RAFT实现了第一个阶段:LEADER选举,使用了JAVA,MAVEN,DOCKER实现。虽然还有一些小瑕疵,慢慢来吧。 附上 ...
分类:
编程语言 时间:
2019-09-30 22:09:27
阅读次数:
96
You have decided to implement the principle of least privilege and separation of duties. Which two actions must you take? A)Grant SYSOPER to applicati ...
分类:
其他好文 时间:
2019-09-30 15:06:58
阅读次数:
99
致敬hello world! print("hello world!") print("hello again") print("this is the 3rd line, \n", "and this is also the 3rd line") print("this is the 3rd li ...
分类:
编程语言 时间:
2019-09-30 13:01:22
阅读次数:
92
题目大意:$prime(x)$ 代表 $x$ 的质因数的集合。 $g(x, p)$ 代表 $p^k$ 的最大值, $k$ 为整数,并且 $x$ 可以被 $p^k$ 整除。 $f(x, p)$ 代表 对于 $prime(x)$ 中的每一个 $x$ 的 $g(x, p)$ 值。 现在给定 $x, n$ ...
分类:
其他好文 时间:
2019-09-30 09:58:21
阅读次数:
89
Hexo是一个简单地、轻量地、基于Node的一个静态博客框架,可以方便的生成静态网页托管在github和Heroku上。引用Hexo作者 @tommy351 的话:快速、简单且功能强大的Node.js博客框架。A fast, simple & powerful blog framework, pow... ...
分类:
其他好文 时间:
2019-09-28 11:05:26
阅读次数:
112
Nonrecursive Traversal of Binary Tree First I wanna talk about why should we use <code>Stack</code> to implement this algorithm. I think it is due to ...
分类:
编程语言 时间:
2019-09-27 22:52:35
阅读次数:
125