码迷,mamicode.com
首页 >  
搜索关键字:c. dzy loves sequences    ( 1332个结果
【bzoj3309】DZY Loves Math 莫比乌斯反演+线性筛
题目描述 对于正整数x,定义f(x)为x所含质因子的最大幂指数。例如f(1960)=f(2^3 * 5^1 * 7^2)=3, f(10007)=1, f(1)=0。给定正整数n,m,求$\sum\limits_{i=1}^n\sum\limits_{j=1}^mf(\gcd(i,j))$ 输入 第 ...
分类:其他好文   时间:2017-09-13 15:11:08    阅读次数:195
LeetCode 659: Split Array into Consecutive Subsequence
Note: 1. If it does not belong any sequences : append.getOrDefault(num, 0) == 0, create a new sequence. It requires num + 1 and num + 2 count > 0. 2. ...
分类:其他好文   时间:2017-09-10 15:48:54    阅读次数:144
HDU 1711 Number Sequence【kmp】
Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a ...
分类:其他好文   时间:2017-09-09 19:38:15    阅读次数:128
POJ 3581 Sequence (后缀数组+离散化)
Sequence Given a sequence, {A1, A2, ..., An} which is guaranteed A1 > A2, ..., An, you are to cut it into three sub-sequences and reverse them separat ...
分类:编程语言   时间:2017-09-05 00:25:11    阅读次数:216
【排序】【规律】Codeforces Round #254 (Div. 2) - D. Rooter's Song
D. DZY Loves FFT Source http://codeforces.com/contest/445/problem/D Description Description Wherever the destination is, whoever we meet, let's render ...
分类:编程语言   时间:2017-09-03 17:56:16    阅读次数:192
14-高效求最长公共子序列(二维数组存不下)
/* See LCS again时间限制:1000 ms | 内存限制:65535 KB难度:3描述 There are A, B two sequences, the number of elements in the sequence is n、m; Each element in the se ...
分类:编程语言   时间:2017-08-25 21:42:54    阅读次数:427
【BZOJ4059】[Cerc2012]Non-boring sequences 分治
【BZOJ4059】[Cerc2012]Non-boring sequences Description 我们害怕把这道题题面搞得太无聊了,所以我们决定让这题超短。一个序列被称为是不无聊的,仅当它的每个连续子序列存在一个独一无二的数字,即每个子序列里至少存在一个数字只出现一次。给定一个整数序列,请你 ...
分类:其他好文   时间:2017-08-24 10:44:56    阅读次数:173
Codeforces 827E Rusty String - 快速傅里叶变换 - 暴力
Grigory loves strings. Recently he found a metal strip on a loft. The strip had length n and consisted of letters "V" and "K". Unfortunately, rust has ...
分类:其他好文   时间:2017-08-22 00:28:00    阅读次数:366
BFS POJ3322 Bloxorz I
Bloxorz I Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 6108 Accepted: 2007 Description Little Tom loves playing games. One day he downlo ...
分类:其他好文   时间:2017-08-19 21:14:12    阅读次数:119
CodeForces E. Lucky Array 幸运数列
CodeForces E. Lucky Array 幸运数列 Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contai ...
分类:其他好文   时间:2017-08-19 18:31:03    阅读次数:209
1332条   上一页 1 ... 41 42 43 44 45 ... 134 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!