摘要:
"传送门" 一开始读错题了,以为是$\sum_{1\leq u\leq v\leq n}f(u,v)$,还疑惑这题这么简单怎么没人做( 实际上是$\sum_{1\leq u\leq v\leq n}f(u,v)^{f(u,v)}$(捂脸) 这个东西拆分是几乎不可做的,因此只能直接算。 发现对于固定起 阅读全文
摘要:
"传送门" 题意:有一个长为$n$的排列$p$,设$S_i=\sum_{j=1}^{i 1}p_j\cdot[p_j include include include include include define R register define ll long long using namespa 阅读全文