最新 最热

数学--数论--HDU 4675 GCD of Sequence

先放知识点: 莫比乌斯反演 卢卡斯定理求组合数 乘法逆元 快速幂取模GCD of Sequence Alice is playing a game with Bob.Alice shows N integers a 1, a 2, …, a N, and M, K. She says each integ......

2020-11-06
0

Codeforces Round #623 (Div. 2, based on VK Cup 2019-2020 - Elimination Round, Engine) C. Restoring

C. Restoring Permutation time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given a sequence ...

2020-10-29
1

CF思维联系– Codeforces-990C Bracket Sequences Concatenation Problem(括号匹配+模拟)

ACM思维题训练集合 A bracket sequence is a string containing only characters “(” and “)”.

2020-10-29
0

CodeForces 1058C C. Vasya and Golden Ticket

C. Vasya and Golden Ticket time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Recently Vasya found a ...

2020-10-28
1

POJ 3581 Prime Gap(二分)

Prime GapTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 11009 Accepted: 6298DescriptionThe sequence of n − 1 consecutive composite numbers (posit...

2020-10-28
0

杭电60题--part 1 HDU1003 Max Sum(DP 动态规划)

Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequenc...

2020-10-28
0

CodeForces - 1102A(思维题)

https://vjudge.net/problem/2135388/origin Describe

2020-10-28
0

1745 Divisibility

Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 14084 Accepted: 4989 Description

2020-10-28
1

POJ 2955 区间DP必看的括号匹配问题,经典例题

Brackets Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14226 Accepted: 7476 Description

2020-10-28
1

codeforces 1364B(数学)

Given a permutation p of length n, find its subsequence s1, s2, …, sk of length at least 2 such that:

2020-10-23
1