Challenge
Careers
Class
Connect
로그인 후 문제풀이가 가능합니다.
반례좀 알려주세용
const input = require('fs').readFileSync(0).toString().trim().split('\n') const arrRow = input.map(item=> item.split(' ').map(Number)) let arrCol = [[],[],[]] for (let i = 0; i < arrRow.length; i++) { arrCol[0].push(arrRow[i][0]) arrCol[1].push(arrRow[i][1]) arrCol[2].push(arrRow[i][2]) } function add(arr){ let countArr = [] for (let i = 0; i < 3; i++) { let count1 = 0; let count2 = 0; let count3 = 0; for (let j = 0; j < 3; j++) { ...