摘要: 题目链接:D. Inna and Sequence 题意:三种操作,1往序列后面加个1,0往序列后面加个0,-1,把给定位置上的数删除。 题解:用树状数组保存的数没被删的个数,每次二分找到位置,然后用数组标记这里被删除。 阅读全文
posted @ 2018-02-06 20:54 lhclqslove 阅读(134) 评论(0) 推荐(0)
摘要: 题目链接:H - Binary Lexicographic Sequence 题意: Consider all the sequences with length (0 < N < 44), containing only the elements 0 and 1, and no two ones 阅读全文
posted @ 2018-02-06 18:57 lhclqslove 阅读(142) 评论(0) 推荐(0)