목록문제풀이 (155)
말랑한 하루
[SW Expert Academy] 2005 파스칼의 삼각형 [Java]
[ 핵심풀이 ] [ 핵심소스 ] [ Java ] import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for (int t = 1; t
문제풀이/SWexpert Academy
2021. 1. 21. 21:56
[SW Expert Academy] 1984 중간 평균 값 구하기 [Java]
[ 핵심풀이 ] [ 핵심소스 ] [ Java ] import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for (int t = 1; t temp ? high : temp; low = low < temp ? low : temp; } // System.out.println((double)((sum-high-low)/8)); System.out.println("#"+t+" "+Math.round((double)(sum-high-low)/8)); } sc.close(); } }
문제풀이/SWexpert Academy
2021. 1. 21. 21:55