unlocking education benefits success

Educational Codeforces Round 65 (Rated for Div

D - Bicolored RBS 给定一个括号序列,现在你必须对每一个括号涂成蓝色或红色,要求使得涂完后的红色括号和蓝色括号序列都必须是合法的括号序列,设红色括号形成的的括号序列的深度为$dep_1$,蓝色括号形成的括号序列的深度为$dep_2$,答案为$max(dep_1,dep_2)$,现在让 ......
Educational Codeforces Round Rated Div

Educational Codeforces Round 77 (Rated for Div2)

B - Obtain Two Zeroes 给定两个整数$a,b$,你可以执行以下操作任意次:每次操作选择一个正整数$x$,使得$a:=a-x,b:=b-2x$或者$a:=a-2x,b:=b-x$,问你是否能通过操作使得$a,b$都为同时为$0$ 题解:思维 假设$a<b$ 我们可以得到$a-x+b ......
Educational Codeforces Round Rated Div2

Edu Round 板刷计划 3. Educational Codeforces Round 3 题解

Change Log: 2023.03.27 开坑. A - USB Flash Drives 弱智题. 将 $a_i$ 从大到小排序,然后枚举贪心地取即可. 时间复杂度 $O(n\log n)$. 随便过. Sample submission. ......
板刷 题解 Round Educational Codeforces

AtCoder Educational DP Contest

1.A 没什么难度,直接算就可以了。 点击查看代码 #include<bits/stdc++.h> #define int long long #define Yes printf("Yes\n") #define No printf("No\n") #define YES printf("YES\ ......
Educational AtCoder Contest DP

Educational Codeforces Round 145 (Rated for Div. 2) A-D题解

比赛地址 A. Garland 1 void solve() 2 { 3 for(int i=1;i<=4;i++) 4 { 5 b[i]=a[i]=0; 6 } 7 int cnt=0; 8 string t;cin>>t; 9 set<int>st; 10 for(int i=0;i<4;i++ ......
题解 Educational Codeforces Round Rated

Educational Codeforces Round 145 (Rated for Div. 2) - 题解

https://codeforces.com/contest/1809/problems A. Garland 只需要枚举颜色种类数即可。如果颜色为 $2$ 还要枚举一下颜色分布,形如 aabb 的答案为 $4$,形如 abbb 的答案为 $6$,如果形如 aaaa 无解,否则答案均为 $4$。 # ......
题解 Educational Codeforces Round Rated

Educational Codeforces Round 116 (Rated for Div. 2)

题目链接 A 核心思路 这个题目相当的玄学,所以如果遇到实在不会的题目。那么直接从样例入手吧,我们可以从样例发现每次改的都是开头或者最后的一个。于是大胆的猜测啊。会不会只要改动开头或者是结尾的呢。 结论:如果开头和结尾相同就不需要改,如果需要就要改。 数学归纳法: n=3,aba这种情况显然成立。 ......
Educational Codeforces Round Rated 116

Edu Round 板刷计划 2. Educational Codeforces Round 2 题解

Change Log: 2023.03.22 开坑. A - Extract Numbers ......
板刷 题解 Round Educational Codeforces

Edu Round 板刷计划 1. Educational Codeforces Round 1 题解

Change Log: 2023.03.21 开坑. A - Tricky Sum 简单题. 注意到 $n$ 以内 $2$ 的幂次只有 $O(\log n)$ 个,因此只要先算出 $1$ ~ $n$ 里所有数的和再减去 $2$ 的幂次的和的 $2$ 倍即可. 时间复杂度 $O(t\log n)$. ......
板刷 题解 Round Educational Codeforces

Educational Codeforces Round 143 (Rated for Div. 2) A-E

比赛链接 A 题意 有两座塔由红蓝方块组成,分别有 $n,m$ 个方块,一次操作可以把一座塔塔顶的方块移动到另一座塔的塔顶,问通过操作是否能使每座塔中没有颜色相同的相邻方块。 题解 知识点:贪心。 注意到,操作最多能拆掉一对相邻的方块,因此统计两座塔不合法的对数。 如果超过 $1$ 对,那么无解。 ......
Educational Codeforces Round Rated 143
共340篇  :12/12页 首页上一页12下一页尾页