feat: run prettier on css
This commit is contained in:
parent
15a2355f05
commit
7989ba0033
2 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
|||
"check": "astro check"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,ts,jsx,tsx,astro,html,md,json,yml,yaml}": [
|
||||
"*.{js,ts,jsx,tsx,astro,html,md,json,yml,yaml,css}": [
|
||||
"prettier --write",
|
||||
"astro check"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -65,8 +65,8 @@ Let $X$ and $Y$ be the number of occurrences of zeroes and ones in the substring
|
|||
|
||||
$$
|
||||
\begin{align*}
|
||||
\sum_{1\leq r\leq n}\sum_{1\leq l<r} f(s[l:r+1])&=\sum_{1\leq r\leq n}\sum_{1\leq l<r} \frac{X+Y+|X-Y|}{2}
|
||||
&=\frac{1}{2}(\sum_{1\leq r\leq n}\sum_{1\leq l<r} X+Y+\sum_{1\leq r\leq n}\sum_{1\leq l<r} |X-Y|)
|
||||
\sum_{1\leq r\leq n}\sum_{1\leq l<r} f(s[l:r+1]) &= \sum_{1\leq r\leq n}\sum_{1\leq l<r} \frac{X+Y+|X-Y|}{2} \\
|
||||
&= \frac{1}{2}(\sum_{1\leq r\leq n}\sum_{1\leq l<r} X+Y+\sum_{1\leq r\leq n}\sum_{1\leq l<r} |X-Y|)
|
||||
\end{align*}
|
||||
$$
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue