原文:[codeforces 901E] Cyclic Cipher 循环卷积-Bluestein's Algorithm

题目大意: 传送门 给两个数列 B i C i ,长度均为 n ,且 B i 循环移位线性无关,即不存在一组系数 X i 使得对于所有的 k 均有 sum i n X i B k i mod n 。 已知 C 是由 B 与 A 构造得到: 搬原图 。 求所有合法的 A 序列。 题解: 首先把式子稍加化简会得到: 显然是个差分式,然后就会得到以下两种结果 以下 B i 均为 B i mod n : ...

2018-04-25 20:18 0 929 推荐指数:

查看详情

玄学小记.5 ~ Bluestein's algorithm

Bluestein's algorithm 算法可以在\(O (n \log n) \)的时间内完成任意长度的 DFT 考虑DFT,有: \(\begin{align*} y_k &= \sum_{i = 0}^{n - 1} a_i \omega_n^{ki}\\ & ...

Sat Jan 27 03:01:00 CST 2018 1 862
Codeforces 1270E

我们把所有点分成四类 $A_{0,0},A_{0,1},A_{1,0},A_{1,1}$ 发现如果$A_{0,0}+A_{1,1} > 0$并且$A_{0,1}+A_{1,0} > 0 ...

Mon Dec 30 23:40:00 CST 2019 4 143
codeforces 877e

E. Danil and a Part-time Job time limit per test 2 seconds memory limit per test 256 megabytes input ...

Mon Nov 06 01:31:00 CST 2017 0 1356
Codeforces Round #614 (Div. 2) E. Xenon's Attack on the Gangs

http://codeforces.com/contest/1293/problem/E 题意: 给出一棵n个点的树,将0—n-2作为边权,最大化 Σ mex(u,v) mex(u,v) 表示u到v的路径上最小的未出现过的自然数 将[0,m]加到一条链上,且这条链上加的边权 ...

Tue Jan 21 01:32:00 CST 2020 0 304
Codeforces 1220E. Tourism

传送门 这是一道英语题,首先要读懂题目: $\text{Alex believes that his trip will be interesting only if he will not us ...

Fri Sep 20 20:42:00 CST 2019 2 263
codeforces 1269 E K Integers

E. K Integers 题目连接:https://codeforces.com/contest/1269/problem/E 题意 给了一个排列p,你每次操作可以交换两个相邻的元素,现在问你最少操作多少次可以形成一个形如1,2,3,4..k 这样的子段 k从1~n 题解 ...

Tue Dec 24 11:42:00 CST 2019 0 260
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM