백준 #27889번 특별한 학교 이름

jhj·2024년 2월 4일

백준 JAVA

목록 보기
124/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		String n = sc.next();
		if(n.equals("NLCS")) {
			System.out.println("North London Collegiate School");
		}else if(n.equals("BHA")) {
			System.out.println("Branksome Hall Asia");
		}else if(n.equals("KIS")) {
			System.out.println("Korea International School");
		}else if(n.equals("SJA")) {
			System.out.println("St. Johnsbury Academy");
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글