给出$A_1, \cdots, A_n$。每次询问一个区间,求该区间的子区间的与分别有多少不相同结果。 询问强制在线。 $$A_i < 2^{30}$$ 分析 第一个要解
学完就忘,重学。不过说实话,对于校内上的那种“线性代数”忘不忘有意义吗。 和标题一样,就只有一点,而且组织混乱。 略
这个东西很复杂,似乎也不好找到「恰好足够」的资料,要么讲得太浅,要么就只能去翻硬件文档。但是仅仅为了一个要求模糊而且并不好玩的作业做到那种地
被打上「石乐志」标签的文章是彻底属于“闲扯”的存在 感觉时间过去足够长了,把之前糊概率作业的小玩意拿出来。实际上东西不多,但是众所周知,作业能
C. Emergency Evacuation 当没有人碰在一起时,耗时就是离门最远的人需要的耗时。当有人碰在一起时,才会发生其他情况。。 人碰在一起的条件是他们距离门的距离一样,可以
Little Mishka enjoys programming. Since her birthday has just passed, her friends decided to present her with array of non-negative integers a1, a2, …, an of n elements! Mishka loved the array and she instantly decided to determine its beauty value, but she is too little and can’t process large arrays. Right because of that she invited you to visit her and asked you to process m queries. Each query