随笔分类 - ACM_usaco
摘要:http://train.usaco.org/usacoprob2?a=7BaJNgFLmpD&S=buylow 求最长递减子序列以及方案数,注意重复不算,比如 3 2 3 2 1 ,这里取到最长递减子序列算一种(3 2 1)。 思路: 最长递减子序列的长度可以直接dp: dp[i]=max(dp[
阅读全文
摘要:StringsobitsKim Schrijvers Consider an ordered set S of strings of N (1 <= N <= 31) bits. Bits, of course, are either 0 or 1. This set of strings is i
阅读全文

浙公网安备 33010602011771号