摘要:
题目链接:H - Binary Lexicographic Sequence 题意: Consider all the sequences with length (0 < N < 44), containing only the elements 0 and 1, and no two ones 阅读全文
摘要:
题目链接:F. SUM and REPLACE 题意:给一个数组,两种操作,第一种把[L,R]的数变成这个数的因子个数(这个是log级别的下降),第二种求[L,R]的和 题解:我们发现当数字到1或2后就不会更改,我们用两个线段树,一个维护和,一个维护区间最大值,当区间的最大值小于等于2的时候就可以不 阅读全文