题目描述 对于正整数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
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
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
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
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
/* 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 Description 我们害怕把这道题题面搞得太无聊了,所以我们决定让这题超短。一个序列被称为是不无聊的,仅当它的每个连续子序列存在一个独一无二的数字,即每个子序列里至少存在一个数字只出现一次。给定一个整数序列,请你 ...
分类:
其他好文 时间:
2017-08-24 10:44:56
阅读次数:
173
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
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 幸运数列 Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contai ...
分类:
其他好文 时间:
2017-08-19 18:31:03
阅读次数:
209