2908번1 [백준] 2908번 상수 package backjun; import java.util.Scanner; public class Ex2908 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); String[] st = str.split(" "); String result = ""; for(int i=0; i st[1].charAt(2)) { result = st[0]; } else if(st[0].charAt(2) st[1].charAt(1)) { result = st[0]; .. 2022. 4. 12. 이전 1 다음