大学物理期末急救指北
大学物理急救指北
大学物理急救指北
You are given sequences of length $N$, $A=(A_1,A_2,\ldots,A_N)$ and $B=(B_1,B_2,\ldots,B_N)$.
You are also given $Q$ queries to process in order.
There are three types of queries:
1 l r x : Add $x$ to each of $Al, A{l+1}, \ldots, A_r$.2 l r x : Add $x$ to each of $Bl, B{l+1}, \ldots, B_r$.3 l r : Print the remainder of $\displaystyle\sum_{i=l}^r (A_i\times B_i)$ when divided by $998244353$.For a positive integer $N$, let $V_N$ be the integer formed by concatenating $N$ exactly $N$ times.
More precisely, consider $N$ as a string, concatenate $N$ copies of it, and treat the result as an integer to get $V_N$.
For example, $V3=333$ and $V{10}=10101010101010101010$ .
Find the remainder when $V_N$ is divided by $998244353$.
Hexo博客Next主题更换cdn加速访问
有时候访问我的博客时,总是会出现cdn.jsdelivr.net无法访问或者访问速度过慢的情况。我的博客园使用的是BNDong/Cnblogs-Theme-SimpleMemory主题,也遇到的这样的情况。经过我的一番折腾之后,将js文件转移到了我自己的OSS中,并且又经过了我的一番折腾之后,设置好了跨域资源共享(CORS)策略,让我的博客访问的时候不会时好时坏了。
现在我搭建了Hexo博客,使用Next主题,其中也使用了很多jsdelivr的托管文件。有时候别人会出现访问慢、卡、进不去的情况。我打算也更换成我的OSS。
好在Next主题配置文件_config.yml中就有相关的配置。
For a non-negative integer $K$, we define a level-$K$ carpet as follows:
You are given a non-negative integer $N$. Print a level-$N$ carpet according to the specified format.