https://www.acmicpc.net/problem/17608배열 사용import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] height = new int[n]; for (int i = 0; i = 0; i--) { if (height[i] > maxHeight) { maxHeight = height[i]; num+..
[백준] #17608. 막대기 (브론즈 2)
https://www.acmicpc.net/problem/17608배열 사용import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] height = new int[n]; for (int i = 0; i = 0; i--) { if (height[i] > maxHeight) { maxHeight = height[i]; num+..
2024.06.06