import java.util.Arrays;
class Solution {
public int solution(int[] sides) {
int count = 0;
int[] three = Arrays.copyOf(sides, 3);
for (int i = 1; i <= three[0] + three[1]; i++) {
three = Arrays.copyOf(sides, 3);
three[2] = i;
Arrays.sort(three); // 변의 길이를 오름차순으로 정렬
int maxLength = three[2];
int twoLength = three[0] + three[1];
if (twoLength > maxLength) {
count++;
}
}
return count;
}
}