摘要: [Zjoi2013]K大数查询 Description 有N个位置,M个操作。操作有两种,每次操作如果是1 a b c的形式表示在第a个位置到第b个位置,每个位置加入一个数c如果是2 a b c形式,表示询问从第a个位置到第b个位置,第C大的数是多少。 有N个位置,M个操作。操作有两种,每次操作如果 阅读全文
posted @ 2017-12-04 18:06 Kaiser- 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 【bzoj2527】[Poi2011]Meteors Description Byteotian Interstellar Union (BIU) has recently discovered a new planet in a nearby galaxy. The planet is unsui 阅读全文
posted @ 2017-12-04 15:05 Kaiser- 阅读(261) 评论(0) 推荐(1) 编辑
摘要: 【bzoj2738】矩阵乘法 Description 给你一个N*N的矩阵,不用算矩阵乘法,但是每次询问一个子矩形的第K小数。 Input 第一行两个数N,Q,表示矩阵大小和询问组数;接下来N行N列一共N*N个数,表示这个矩阵;再接下来Q行每行5个数描述一个询问:x1,y1,x2,y2,k表示找到以 阅读全文
posted @ 2017-12-04 12:59 Kaiser- 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Farmer John is continuing to ponder the issue of cows crossing the road through his farm, introduced in the preceding two problems. He realizes n 阅读全文
posted @ 2017-12-04 12:53 Kaiser- 阅读(413) 评论(0) 推荐(1) 编辑