
差分约束
文章平均质量分 76
elijahqi
这个作者很懒,什么都没留下…
展开
-
bzoj2330&luogu3275 scoi2011糖果
http://www.elijahqi.win/archives/1157 题目描述幼儿园里有N个小朋友,lxhgww老师现在想要给这些小朋友们分配糖果,要求每个小朋友都要分到糖果。但是小朋友们也有嫉妒心,总是会提出一些要求,比如小明不希望小红分到的糖果比他的多,于是在分配糖果的时候,lxhgww需要满足小朋友们的K个要求。幼儿园的糖果总是有限的,lxhgww想知道他至少需要准备多少个糖果,...原创 2018-05-05 23:50:28 · 176 阅读 · 0 评论 -
bzoj2788&luogu3530 poi2012 festival
http://www.elijahqi.win/archives/1176 题目描述A charity festival is taking place in Byteburg, and you are one of the fundraisers.Unfortunately you have missed some fun activities, including a steepl...原创 2018-05-07 23:40:58 · 217 阅读 · 0 评论 -
codeforces 295a Greg and Array
http://www.elijahqi.win/archives/1189 Greg has an array a = a1, a2, …, an and m operations. Each operation looks as: li, ri, di, (1 ≤ li ≤ ri ≤ n). To apply operation i to the array means to increase...原创 2018-05-07 23:44:15 · 367 阅读 · 0 评论