codeforces
blue bear
这个作者很懒,什么都没留下…
展开
-
Educational Codeforces Round 94 (Rated for Div. 2) E. Clear the Multiset
TitleCodeForces 1400 E. Clear the MultisetTime Limit2 secondsMemory Limit256 megabytesProblem DescriptionYou have a multiset containing several integers. Initially, it contains a1a_1a1 elements equal to 111, a2a_2a2 elements equal to 222, …, ana_n原创 2020-08-26 01:29:29 · 128 阅读 · 0 评论 -
Educational Codeforces Round 94 (Rated for Div. 2) D. Zigzags
TitleCodeForces 1400 D. ZigzagsTime Limit2 secondsMemory Limit256 megabytesProblem DescriptionYou are given an array a1,a2…ana_1, a_2 \dots a_na1,a2…an. Calculate the number of tuples (i,j,k,l)(i, j, k, l)(i,j,k,l) such that:1≤i<j<k<l≤原创 2020-08-26 01:23:48 · 118 阅读 · 0 评论 -
Educational Codeforces Round 94 (Rated for Div. 2) C. Binary String Reconstruction
TitleCodeForces 1400 C. Binary String ReconstructionTime Limit2 secondsMemory Limit256 megabytesProblem DescriptionConsider the following process. You have a binary string (a string where each character is either 0 or 1) www of length nnn and an int原创 2020-08-26 01:12:44 · 106 阅读 · 0 评论 -
Educational Codeforces Round 94 (Rated for Div. 2) B. RPG Protagonist
TitleCodeForces 1400 B. RPG ProtagonistTime Limit2 secondsMemory Limit256 megabytesProblem DescriptionYou are playing one RPG from the 2010s. You are planning to raise your smithing skill, so you need as many resources as possible. So how to get res原创 2020-08-26 01:01:36 · 157 阅读 · 0 评论 -
Educational Codeforces Round 94 (Rated for Div. 2) A. String Similarity
TitleCodeForces 1400 A. String SimilarityTime Limit2 secondsMemory Limit256 megabytesProblem DescriptionA binary string is a string where each character is either 0 or 1. Two binary strings aaa and bbb of equal length are similar, if they have the s原创 2020-08-26 00:56:46 · 94 阅读 · 0 评论 -
Codeforces Round #665 (Div. 2)D. Maximum Distributed Tree
TitleCodeForces 1401 D. Maximum Distributed TreeTime Limit2 secondsMemory Limit256 megabytesProblem DescriptionYou are given a tree that consists of nnn nodes. You should label each of its n−1n-1n−1 edges with an integer in such way that satisfies t原创 2020-08-22 01:25:00 · 733 阅读 · 0 评论 -
Codeforces Round #665 (Div. 2) C. Mere Array
TitleCodeForces 1401 C. Mere ArrayTime Limit2 secondsMemory Limit256 megabytesProblem DescriptionYou are given an array a1,a2,…,ana_1, a_2, \dots, a_na1,a2,…,an where all aia_iai are integers and greater than 000.In one operation, you can choos原创 2020-08-22 01:23:10 · 242 阅读 · 0 评论 -
Codeforces Round #665 (Div. 2) B. Ternary Sequence
TitleCodeForces 1401 B. Ternary SequenceTime Limit2 secondsMemory Limit256 megabytesProblem DescriptionYou are given two sequences a1,a2,…,ana_1, a_2, \dots, a_na1,a2,…,an and b1,b2,…,bnb_1, b_2, \dots, b_nb1,b2,…,bn. Each element of both sequ原创 2020-08-22 01:20:05 · 740 阅读 · 8 评论 -
Codeforces Round #665 (Div. 2) A. Distance and Axis
TitleCodeForces 1401 A. Distance and AxisTime Limit1 secondMemory Limit256 megabytesProblem DescriptionWe have a point AAA with coordinate x=nx = nx=n on OXOXOX-axis. We’d like to find an integer point BBB (also on OXOXOX-axis), such that the absolu原创 2020-08-22 01:16:20 · 172 阅读 · 0 评论 -
Codeforces Round #643 (Div. 2)A-E个人题解
Codeforces Round #643 Div. 2A-E个人题解[A.Sequence with Digits](https://codeforces.com/contest/1355/problem/A)题面水题AC代码[B. Young Explorers](https://codeforces.com/contest/1355/problem/B)题面桶+贪心AC代码[C. Count Triangles](https://codeforces.com/contest/1355/problem/原创 2020-05-17 11:53:47 · 350 阅读 · 0 评论 -
2020/5/11 每日一咕
2020/5/11 每日一咕1.线段树优化dpProblem - 1216F - Codeforces (Unofficial mirror site by GGAutomaton, accelerated for Chinese users)You work as a system administrator in a dormitory, which has nnn rooms one after another along a straight hallway. Rooms are number原创 2020-05-11 22:19:51 · 219 阅读 · 0 评论 -
2020/5/10 每日一咕
2020/5/101.思维+STLProblem - 1277D - CodeforcesPolycarp has n different binary words. A word called binary if it contains only characters ‘0’ and ‘1’. For example, these words are binary: “0001”, “11”, “0” and “0011100”.Polycarp wants to offer his set of原创 2020-05-11 21:52:28 · 114 阅读 · 0 评论 -
Codeforces Round #639 (Div. 2) D. Monopole Magnets 思维+DFS
题面Problem - D - Codeforces (Unofficial mirror site by GGAutomaton, accelerated for Chinese users)A monopole magnet is a magnet that only has one pole, either north or south. They don’t actually exis...原创 2020-05-07 13:27:04 · 249 阅读 · 0 评论