{"problem":{"name":"图像模糊处理","description":{"content":"给定 $n$ 行 $m$ 列的图像各像素点的灰度值，要求用如下方法对其进行模糊化处理： $1.$ 四周最外侧的像素点灰度值不变； $2.$ 中间各像素点新灰度值为该像素点及其上下左右相邻四个像素点原灰度值的平均（舍入到最接近的整数）。","description_type":"Markdown"},"platform":"Luogu","limit":{"time_limit":1000,"memory_limit":131072},"difficulty":{"LuoguStyle":"P1"},"is_remote":true,"is_sync":true,"sync_url":null,"sign":"LGB2108"},"statements":[{"statement_type":"Markdown","content":"给定 $n$ 行 $m$ 列的图像各像素点的灰度值，要求用如下方法对其进行模糊化处理：\n\n$1.$ 四周最外侧的像素点灰度值不变；\n\n$2.$ 中间各像素点新灰度值为该像素点及其上下左右相邻四个像素点原灰度值的平均（舍入到最接近的整数）。\n\n## Input\n\n第一行包含两个整数 $n$ 和 $m$，表示图像包含像素点的行数和列数。$1 \\le n \\le 100$，$1 \\le m \\le 100$。\n\n接下来 $n$ 行，每行 $m$ 个整数，表示图像的每个像素点灰度。相邻两个整数之间用单个空格隔开，每个元素均在 $0$ ∼ $255$ 之间。\n\n## Output\n\n$n$ 行，每行 $m$ 个整数，为模糊处理后的图像。相邻两个整数之间用单个空格隔开。\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"LGB2108","tags":["数组"],"sample_group":[["4 5\n100 0 100 0 50\n50 100 200 0 0\n50 50 100 100 200\n100 100 50 50 100","100 0 100 0 50\n50 80 100 60 0\n50 80 100 90 200\n100 100 50 50 100"]],"created_at":"2026-03-03 11:09:25"}}