[BUPT WARMUP|CF] 珍珠奶茶

给出一个$N \times N$的非负整数矩阵,要求找到一条从左上角数字到右下角数字的路线,且

  • 只能向右或者下走。
  • 将经过数字相乘后得到的结果,使其末尾的“0”最少。
$$ N \leq 1000 $$

Colorful Tree

There is a tree having n nodes, the i-th node of which has a type of color, denoted by an integer $c_i$ The path between every two nodes is unique, of which we define the value is the number of distinct types of colors appearing on it. Calculate the sum of values of all possible paths, $\frac{n(n-1)}{2}$ in total, between two different nodes on the tree. 输入范围

快速傅里叶变换

写代码是不可能写代码的,今下午是不想写代码的.不想写代码,又不想咸鱼,就只能靠学点新东西来假装自己在工作的样子,心里才能好受些.

窃格码拉

几乎可以肯定,下面的内容肯定会出锅.