![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
文章平均质量分 88
ElisaBaby
这个作者很懒,什么都没留下…
展开
-
Missing Numbers
链接:https://ac.nowcoder.com/acm/contest/13168/D来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144K64bit IO Format: %lld题目描述You enjoy your new job as a teacher of young children. It’s fun to see them learning to count, recognize letters, draw, and原创 2021-04-12 14:32:33 · 163 阅读 · 0 评论 -
Codeforces Round #712 (Div. 2). Balance the Bits
C. Balance the Bitstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA sequence of brackets is called balanced if one can turn it into a valid math expression by adding characters ‘+’ and ‘1’. For exa原创 2021-04-11 11:40:31 · 114 阅读 · 0 评论 -
Codeforces Round #712 (Div. 2)B. Flip the Bits
B. Flip the Bitstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a binary string a of length n. In one operation, you can select any prefix of a with an equal number of 0 and 1 symbols. Then原创 2021-04-11 11:39:40 · 196 阅读 · 0 评论 -
Codeforces Round #712 (Div. 2)A. Déjà Vu
A. Déjà Vutime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA palindrome is a string that reads the same backward as forward. For example, the strings “z”, “aaa”, “aba”, and “abccba” are palindromes,原创 2021-04-10 00:03:36 · 210 阅读 · 0 评论 -
Codeforces Round #708 (Div. 2)B. M-arrays
B. M-arraystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述You are given an array a1,a2,…,an consisting of n positive integers and a positive integer m.You should divide elements of this array原创 2021-03-21 17:45:23 · 141 阅读 · 1 评论 -
Good Bye 2014 C. New Year Book Reading
C. New Year Book Readingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述New Year is coming, and Jaehyun decided to read many books during 2015, unlike this year. He has n books numbered by int原创 2021-03-21 14:36:39 · 92 阅读 · 0 评论 -
Codeforces Round #708 (Div. 2)A. Meximization
A. Meximizationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output题目描述You are given an integer n and an array a1,a2,…,an. You should reorder the elements of the array a in such way that the sum of MEX原创 2021-03-21 14:33:59 · 238 阅读 · 0 评论 -
Codeforces Round #706 (Div. 2)A. Split it!
A. Split it!time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKawashiro Nitori is a girl who loves competitive programming.题目描述One day she found a string and an integer. As an advanced problem sette原创 2021-03-15 14:58:18 · 126 阅读 · 0 评论