{"problem":{"name":"矩阵加法","description":{"content":"输入两个 $n$ 行 $m$ 列的矩阵 $A$ 和 $B$，输出它们的和 $A+B$，矩阵加法的规则是两个矩阵中对应位置的值进行加和，具体参照样例。","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":"LGB2104"},"statements":[{"statement_type":"Markdown","content":"输入两个 $n$ 行 $m$ 列的矩阵 $A$ 和 $B$，输出它们的和 $A+B$，矩阵加法的规则是两个矩阵中对应位置的值进行加和，具体参照样例。\n\n## Input\n\n第一行包含两个整数 $n$ 和 $m$，表示矩阵的行数和列数 $(1 \\le n \\le 100$，$1 \\le m \\le 100)$。\n\n接下来 $n$ 行，每行 $m$ 个整数，表示矩阵 $A$ 的元素。\n\n接下来 $n$ 行，每行 $m$ 个整数，表示矩阵 $B$ 的元素。\n\n相邻两个整数之间用单个空格隔开，每个元素均在 $1 \\sim 1000$ 之间。\n\n## Output\n\n$n$ 行，每行 $m$ 个整数，表示矩阵加法的结果。相邻两个整数之间用单个空格隔开。\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"LGB2104","tags":["矩阵运算","数组"],"sample_group":[["3 3\n1 2 3\n1 2 3\n1 2 3\n1 2 3\n4 5 6\n7 8 9","2 4 6\n5 7 9\n8 10 12"]],"created_at":"2026-03-03 11:09:25"}}