문제삼각형만들기https://www.acmicpc.net/problem/2622 풀이설명주어진 성냥개비로 만들 수 있는 삼각형의 개수를 구하는 문제입니다. 삼각형을 만들려면 가장 작은 변 2개의 길이의 합이 나머지 변의 길이보다 커야 합니다. 예시 코드function solution() { const N = Number(input()); return countTriangles(N);}function countTriangles(matchsticks) { let totalTriangles = 0; for (let a = 1; a c) totalTriangles++; } } return totalTriangles;}