Anton

CF785D Anton and School - 2

题意 给定一个长度为 \(n\) 的括号序列,求该括号序列满足下列条件的子序列个数。 长度为偶数 设长度为 \(2m\),则 \(s_{1 \ldots m} =\) (,\(s_{m + 1 \ldots 2m} =\) )。 Sol 设 \(i\) 为最后一个 (,\(a\) 表示 \(\sum ......
School Anton 785D 785 and

CF785D Anton and School - 2 题解

CF785D Anton and School - 2 题解 分析 很明显有一种 \(\mathcal O(n^2)\) 的做法,遍历每一个 (,再枚举 \(k\),左边不包含这一位选 \(k-1\) 个 (,右边选 \(k\) 个 ),求组和即可。 但是数据范围是 \(n \le 2\times ......
题解 School Anton 785D 785

Anton and School - 2题解

2023-09-26 题目 难度&重要性(1~10): 题目来源 luogu 题目算法 组合数学 解题思路 前置知识 范德蒙德卷积公式:\(\sum\limits_{i=0}^kC_{n}^{i}\times C_{m}^{k-i}=C_{n+m}^k\)。 至于证明请看此篇文章。 Sol 我们这道 ......
题解 School Anton and

443A - Anton and Letters

## A. Anton and Letters https://codeforces.com/problemset/problem/443/A ##### Recently, Anton has found a set. The set consists of small English lette ......
Letters Anton 443A 443 and
共4篇  :1/1页 首页上一页1下一页尾页