삐까냥의 파도타기
문제 출처 : https://www.acmicpc.net/problem/9095 import java.util.Scanner; public class Main {static int[] arrayValue;public static void main(String[] args) {Scanner scanner = new Scanner(System.in);int input = scanner.nextInt();int[] array = new int[input];int max = 0;//입력한 값을 차례대로 넣는다.for ( int i = 0; i te..
문제 출처 : https://www.acmicpc.net/problem/2579 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in);int input = scanner.nextInt();int[] stair = new int[input];int[] stairSum = new int[input];for ( int i = 0; i 0 ) {stairSum[0] = stair[0];//1번째의 가장 큰 ..
문제 출처 : https://www.acmicpc.net/problem/1149 import java.util.Scanner;public class Main {static int[] array = new int[3]; public static void main(String[] args){ Scanner scanner = new Scanner(System.in);int input = scanner.nextInt(); for (int i = 0; i < input; i++) {setNext(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());} //세가지 값 중에서 가장 작은 값을 선택하기int result = array[0] < array[1] ? arra..