
构造
文章平均质量分 57
ypxrain
这个作者很懒,什么都没留下…
展开
-
BZOJ 2530: [Poi2011]Party
DescriptionByteasar intends to throw up a party. Naturally, he would like it to be a success. Furthermore, Byteasar is quite certain that to make it so it suffices if all invited guests know each other原创 2017-04-10 13:33:21 · 278 阅读 · 0 评论 -
AtCoder Grand Contest 016 C - +/- Rectangle
题意给出n,m,x,y,要求构造一个n*m的矩形使得其元素和大于0且任意一个x*y的子矩形的元素和小于0。 x,y,n,m<=500分析很容易想到在所有横坐标为x的倍数,纵坐标为y的倍数的格子填上-x*y,其余格子全填1,这样就可以保证每个子矩阵的和小于0。但是这样在多出来的格子比较少的时候可能会导致整个矩形的元素和小于0。于是我们可以设一个较大的常数d,把每个格子填上d...原创 2018-04-16 21:50:15 · 153 阅读 · 0 评论