摘要: ZOJ 3578 Matrixinput:第一行:N M C 后面C行:ai,bi,hi,xi,yiproblem:一个N*M的网格平面,开始时平面上所有网格值为0定义操作T(ai,bi,hi,xi,yi):1.挑选出网格矩阵[xi,yi,xi+ai,yi+bi]中的最大值max2.将网格矩阵[xi,yi,xi+ai,yi+bi]中的所有值赋为max+hi求C次操作后,网格矩阵N*M中的最大值数据范围N__27 #include28 const int N = 1000+10;29 class Matrix {30 public:31 int left,right;32 int... 阅读全文
posted @ 2012-03-07 20:51 AndreMouche 阅读(512) 评论(0) 推荐(0) 编辑