๐ŸŽฒ๋ฐฑ์ค€ 2738๋ฒˆ ํ–‰๋ ฌ ๋ง์…ˆ

Jeongeunยท2023๋…„ 1์›” 2์ผ
0

๋ฐฑ์ค€

๋ชฉ๋ก ๋ณด๊ธฐ
15/187

๋ฐฑ์ค€ 2738๋ฒˆ

์ฝ”๋“œ

๐Ÿงธ ์—„์ฒญ ๊ฐ„๋‹จํ•˜๊ฒŒ ํ‘ผ ๊ฒƒ ๊ฐ™์•„์„œ ๋ฟŒ๋“ฏํ•˜๋‹ค ใ…Žใ…Ž

const fs = require('fs'); 
const input = fs.readFileSync('/dev/stdin').toString().split('\n');
const N = parseInt(input[0].split(' ')[0]);
const M = parseInt(input[0].split(' ')[1]);

for(let i = 0; i<N; i++){
    let string = '';
    for(let j = 0 ; j < M; j++){
        string += parseInt(input[i+1].split(' ')[j])+parseInt(input[i+1+N].split(' ')[j])+' ';
    }
    console.log(string);
}


0๊ฐœ์˜ ๋Œ“๊ธ€