public class CuboidVolumes {
public static int findDifference(final int[] firstCuboid, final int[] secondCuboid) {
//your code here !!
return Math.abs(firstCuboid[0]*firstCuboid[1]*firstCuboid[2] - secondCuboid[0]*secondCuboid[1]*secondCuboid[2]);
}
}
'문제 풀이 > 자바' 카테고리의 다른 글
자바 문제 풀이 22 (0) | 2023.05.03 |
---|---|
자바 문제 풀이 21 (0) | 2023.05.02 |
자바 문제 풀이 19 (0) | 2023.04.30 |
자바 문제 풀이 18 (0) | 2023.04.30 |
자바 문제 풀이 17 (0) | 2023.04.30 |