문제풀이/백준3 [Java] 11659번 구간 합 구하기 4 import java.io.IOException;import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException{ BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer stringTokenizer = new StringTokenizer(bufferedReader.readLine()); int .. 2025. 3. 31. [Java] 1546번 평균 import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A[] = new int[N]; for(int i=0; i max ) max = A[i]; sum = sum + A[i]; } System.out.println(sum * 100.0 / max / N); }} 2025. 3. 27. [Java] 11720번 숫자의 합 import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String sNum = sc.next(); char[] cNum = sNum.toCharArray(); int sum = 0; for(int i=0; i 2025. 3. 27. 이전 1 다음