Skip to content

Commit 105ed24

Browse files
committed
84차 2번 문제풀이이
1 parent e6460c7 commit 105ed24

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

live8/test84/문제2/황장현.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const input = require('fs')
2+
.readFileSync(process.platform === 'linux' ? '/dev/stdin' : './input.txt')
3+
.toString()
4+
.trim()
5+
.split('\n')
6+
.map((el) => el.split(' ').map(Number));
7+
8+
function solution(input) {
9+
const [K, N] = input[0];
10+
const lanList = input.slice(1).flat();
11+
if (K >= N) return Math.max(...lanList);
12+
}
13+
14+
console.log(solution(input));

0 commit comments

Comments
 (0)