We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6460c7 commit 105ed24Copy full SHA for 105ed24
1 file changed
live8/test84/문제2/황장현.js
@@ -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