Codeforces
-
Codeforces Round #761 (Div. 2) B. GCD Problem
B. GCD Problem 题目Link 题意 /(T (1 /le T /le 100000)/) 组数据,给定一个数字 /(n (10 /le n /le 10^9)/),请…
-
Codeforces Round #820 (Div. 3) F
F. Kirei and the Linear Function time limit per test3 seconds memory limit per test256 meg…
-
[Editorial] Codeforces Contest 1726
A. Mainak and Array 显然如果 /([l,r]/) 不包括两端那么就不会对答案有影响,那么直接枚举包括两端的情况即可。 /* author : Gemini da…
-
Educational Codeforces Round 134 D
D. Maximum AND 可以很轻松通过^和& 两个操作看出 我们要求的两个序列每一位上的1加起来必须等于n才行多一个少一个都不行然后1加起来等于n 0自然加起来也等于…
-
Codeforces Round #813 (Div. 2) A – E2
A:一组长度为n 的排列,问交换多少次,能让前m个数变成[1,m]中的数 输出前 m 个数中有多少个比 m 大的就可以了 //————————-代码…
-
Educational Codeforces Round 106 (Rated for Div. 2) | CF1499
E 一个暴力是显然的,/(f(i,j,k)/) 表示当前已经使用 /(a/) 的前 /(i/) 位,/(b/) 的前 /(j/) 位,最后一位是 /(a/) 还是 /(b/) 的。…
-
Codeforces Round #813 (Div. 2) A~C
A. Wonderful Permutation You are given a permutation p1,p2,…,pnp1,p2,…,pn of length nn …
-
[Codeforces_gym_103469] D.Deleting
传送门 Description You are given an array /([1,2,…,n]/), where the number of elements /(n/) i…
-
CF1580F Problems for Codeforces 【生成函数,组合计数】
给定正整数 /(n,m/),求有多少个正整数序列 /(a_1,/cdots,a_n/) 使得 /(a_i+a_{i+1}<m/) 且 /(a_1+a_n<m/),答案对…
-
Codeforces Round #809 (Div. 2)总结
比赛地址 比赛情况 排名:324AC:4 / 6 题目分析 A 显然对于每一步,如果靠前没选就选靠前的,否则选靠后的 B 加入两个相同数字之间可以连起来,它们相隔的个数必然是偶数,…