Nim with division into three heaps
Consider the following variant of the Nim game (source: Read more
Consider the following variant of the Nim game (source: Read more
题目链接.首先把所有的一元限制按照$c_j$... Read more
给定一张无向图, 有边权, 可能有重边和自环. 我们用$p_0$表示原图上从节点$1$到$n$的一条最短路. 对图上的任意一条边$e$, 设$p(e)$是删去边$e$后的从$1$到$n$的最短路, 设$f(e)$是$p(e)$的... Read more
On $\mathbb R$, we have the usual $\min$ and $\max$ operators. They are distributive over each other. Read more
质数的线性筛法比埃氏筛法复杂度更优,且可以被用来求积性函数的函数值。本文给出了相应的数学背景和代码实现,给出了三个常用积性函数(欧拉函数、莫比乌斯函数和除数函数)的线性筛法求法。 Read more