摘要:
又是经典模型的好题目 题目描述 人类智慧之神 zhangzj 最近有点胖,所以要减肥,他买了 NN 种减肥药,发现每种减肥药使用了若干种药材,总共正好有 NN 种不同的药材。 经过他的人脑实验,他发现如果他吃下去了 KK(0≤K≤N0≤K≤N)种减肥药,而这 KK 种减肥药使用的药材并集大小也为 K 阅读全文
摘要:
考试时候遇到这种题只会找规律 You've got an array a, consisting of n integers. The array elements are indexed from 1 to n. Let's determine a two step operation like 阅读全文
摘要:
通过霍尔定理转化判定方式的一步还是很妙的 The biggest gold mine in Berland consists of n caves, connected by n - 1 transitions. The entrance to the mine leads to the cave 阅读全文
摘要:
非常妙的经典模型转化啊…… You're given a matrix A of size n × n. Let's call the matrix with nonnegative elements magic if it is symmetric (so aij = aji), aii = 0 阅读全文
摘要:
比较套路的组合数学题 For a sequence a of n integers between 1 and m, inclusive, denote f(a) as the number of distinct subsequences of a (including the empty sub 阅读全文
摘要:
dinic+tarjan板子练手题 Description Plants vs. Zombies(PVZ)是最近十分风靡的一款小游戏。Plants(植物)和Zombies(僵尸)是游戏的主角,其 中Plants防守,而Zombies进攻。该款游戏包含多种不同的挑战系列,比如Protect Your 阅读全文
摘要:
赛后惊觉对面学校的大佬正巧比我高4pts A. Sushi for Two 题目大意 给定一个只有1,2的数组。求最长的长度为$ans$的子段满足前后$ans\over 2$部分各为不同的数字 题目分析 把相同数字的子段缩成一个点,再以相邻两两最小值取答案最大值。 [枚举]B. Circus 题目大 阅读全文