cf题
文章平均质量分 94
axiaobingqiu
这个作者很懒,什么都没留下…
展开
-
codeforces C. Equal Sums使用map区间。
C. Equal Sumstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given kk sequences of integers. The length of the ii-th seq...原创 2018-06-05 20:28:18 · 305 阅读 · 0 评论 -
codeforces-C. Three displays(有先提条件三个值相加求最大值)(暴力--简单粗暴好理解)
题面:C. Three displaystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt is the middle of 2018 and Maria Stepanovna, who lives ou...原创 2018-08-31 17:25:59 · 205 阅读 · 0 评论 -
codeforces-High School: Become Human(比较大小)
Year 2118. Androids are in mass production for decades now, and they do all the work for humans. But androids have to go to school to be able to solve creative tasks. Just like humans before.It turn...原创 2018-08-31 15:52:34 · 184 阅读 · 0 评论 -
codeforces-Knights of a Polygonal Table(优先队列)
B. Knights of a Polygonal Tabletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputUnlike Knights of a Round Table, Knights of a Poly...原创 2018-08-31 15:16:18 · 161 阅读 · 0 评论 -
codeforces-1006D通过改变使得两个字符串相同
题面:You are given two strings aa and bb consisting of lowercase English letters, both of length nn. The characters of both strings have indices from 11 to nn, inclusive.You are allowed to do the fo...原创 2018-08-13 11:02:09 · 592 阅读 · 0 评论 -
codeforces -1006C
题面:You are given an arrayd1,d2,…,dnd1,d2,…,dnconsisting ofnninteger numbers.Your task is to split this array into three parts (some of which may be empty) in such a way that each element of th...原创 2019-05-27 20:42:25 · 329 阅读 · 0 评论 -
codeforces - 821B-(在函数中求包含的点值想加的最大值)
题面:Okabe needs bananas for one of his experiments for some strange reason. So he decides to go to the forest and cut banana trees.Consider the point (x, y) in the 2D plane such that x and y are in...原创 2018-08-13 10:49:22 · 219 阅读 · 0 评论 -
codeforces -63B(贪心,求做后达标需要的天数)
题面:In a strategic computer game "Settlers II" one has to build defense structures to expand and protect the territory. Let's take one of these buildings. At the moment the defense structure accommod...原创 2018-08-13 10:42:57 · 241 阅读 · 0 评论 -
codeforces-954B(模拟+贪心字符串复制)
题面:You are given a string s consisting of n lowercase Latin letters. You have to type this string using your keyboard.Initially, you have an empty string. Until you type the whole string, you may ...原创 2018-08-13 10:36:39 · 896 阅读 · 0 评论 -
codeforces - 920B(贪心)
B. Tea Queuetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently n students from city S moved to city P to attend a programmi...原创 2018-08-13 10:24:31 · 404 阅读 · 0 评论 -
Codeforces 1000c(线段相交求点覆盖问题)
这道题所实话我是不会做,看了别人的代码也是懵懵懂懂,脑水不行,这里就写一点自己的理解吧。看着别人的代码几行解决了,啥时候咋也可以信手拈来。先对每个集合的端点排序,并且对左右有要求,不可以笼统的一起排序,要标记那个电视开始端,那个点是结束端。然后通过数组来统计被覆盖的次数,很神奇。哈哈哈;代码如下,31 32 31 4---1 11 12 14 -14 -15...原创 2018-08-08 10:51:01 · 263 阅读 · 0 评论 -
codeforces-158B
题面:After the lessons n groups of schoolchildren went outside and decided to visit Polycarpus to celebrate his birthday. We know that the i-th group consists of sifriends (1 ≤ si ≤ 4), and they want ...原创 2018-08-02 20:02:37 · 500 阅读 · 0 评论 -
暴力枚举,Codeforces 1011B
Natasha is planning an expedition to Mars for nn people. One of the important tasks is to provide food for each participant.The warehouse has mm daily food packages. Each package has some food ty...原创 2018-08-01 09:32:28 · 217 阅读 · 0 评论 -
codeforces The Phone number(最长上升与最长下降之和最小)
题面:C. The Phone Numbertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMrs. Smith is trying to contact her husband, John Smith, ...原创 2018-08-09 08:45:26 · 328 阅读 · 0 评论 -
Codeforces Round #527 (Div. 3)D,F;
D题:是一个思维题,同时也是一个数据结构,首先要知道什么情况对,是否可以添加到一个高度有影响,首先想到的是就是如果两个数相邻,且他们相差为奇数,这是就不可以叠到一样高,但是如果2, 1, 1这种情况就可以所以如果奇数出现,偶数次且相邻这是就可以平成任意的高度,这是这两个柱子就不需要考虑。可以消掉,这是·就继续往下考虑;这就相当于一个栈的结构。从这里可以知道,奇数对是否成功有影响,1,3,5他们...原创 2018-12-22 11:38:31 · 181 阅读 · 0 评论