const prompt = require('prompt-sync')();
const numbers = prompt('Input num : ');
const [a, b, c] = numbers
.split(' ')
.map((item) => Number(item))
.sort((a, b) => a - b);
if (a + b > c) {
console.log('YES');
} else {
console.log('No');
}
=> 가장 긴 변을 찾고, 나머지 두 변의 길이가 가장 긴 변보다 크면 무조건 그릴 수 있다.