언젠가는 펼쳐 볼 아카이브
[BOJ] 5597번 - 과제 안 내신 분..? 본문
사용언어 : javascript - node.js
#제출코드
const fs = require('fs');
const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt';
const input = fs
.readFileSync(filePath)
.toString()
.split('\n')
.map((item) => +item);
solution(input);
function solution(attend) {
for (let i = 1; i < 31; i++) {
if (!attend.includes(i)) {
console.log(i);
}
}
}
'IT > Baekjoon Oline Judge' 카테고리의 다른 글
[BOJ] 27866번 - 문자와 문자열 (0) | 2023.08.17 |
---|---|
[BOJ] 3052번 - 나머지 (0) | 2023.08.16 |
[BOJ] 10813번 - 공 바꾸기 (0) | 2023.08.16 |
[BOJ] 10810번 - 공 넣기 (0) | 2023.08.16 |
[BOJ] 2562번 - 최댓값 (0) | 2023.08.16 |