[CF 1295E] Permutation Separation

You are given a permutation 𝑝1,𝑝2,…,𝑝𝑛 (an array where each integer from 1 to 𝑛 appears exactly once). The weight of the 𝑖-th element of this permutation is 𝑎𝑖. At first, you separate your permutation into two non-empty sets — prefix and suffix. More formally, the first set contains elements 𝑝1,𝑝2,

C++新标准特性初探

说实话,这一套东西东拼西凑到处取经,不过有些还挺香的. 目前对于14,17的特性,GCC和Clang都完成了很好的适配.在C++20上,下面提

使用Python分析数据

本来这不是我现在该想的东西,被迫因为建模比赛看了一点。所学东西太过杂乱。 为什么不用Matlab、Mathematica 因为Mathemati

换个主题

[music autoplay=“0”]40915181[/music] 上面这个改编的交响乐还不错,顺便测试一下音乐盒 这个主题还可以,有一些比较比较有趣的东西。 其实是连系统都换了……不想折腾了,还是这样算了。

树链剖分

树链剖分可以用来维护树上路径的信息。把树上的节点拆成不超过$O(\log n)$段连续的路径(链),以映射到线段树或者什么的构来维护数据。 依照

[CF 1165F2]Microtransactions

Ivan plays a computer game that contains some microtransactions to make characters look cooler. Since Ivan wants his character to be really cool, he wants to use some of these microtransactions — and he won’t start playing until he gets all of them.