https://x.aichatos8.cn/ oi-wiki.org
文章
共 2 篇- 个人记录
10.5
AChttps://www.luogu.com.cn/problem/P2865https://www.luogu.com.cn/problem/P1491https://www.luogu.com.cn/problem/P2371https://www.luogu.com.cn…
- 个人记录
U616413题解
https://www.luogu.com.cn/problem/U616413 初看这道题,个人感觉要用树状数组优化,并且设dp【i】表示在第i个数之前海涛的心情,但是复杂度为o(nlongn) 注意到数据范围给的是1-50,且都在int范围内,于是我们可以转变思路,用二进制状…