▣ 입력설명
첫 번째 줄에 100이하의 서로 다른 A, B, C 막대의 길이가 주어진다.
▣ 출력설명
첫 번째 줄에 “YES", "NO"를 출력한다.
▣ 입력예제 1 6 7 11
▣ 출력예제 1 YES
▣ 입력예제 1 13 33 17
▣ 출력예제 1 NO
<html>
<head>
<meta charset="UTF-8" />
<title>출력결과</title>
</head>
<body>
<script>
function solution(a, b, c) {
let answer = 'YES',
max;
let tot = a + b + c;
if (a > b) max = a;
else max = b;
if (c > max) max = c;
if (tot - max <= max) answer = 'NO';
return answer;
}
console.log(solution(13, 33, 17));
</script>
</body>
</html>