-
[java]백준 특별한 학교 이름 27889번알고리즘 문제풀이/백준(자바) 2023. 5. 14. 22:20
코드
import java.io.BufferedReader; import java.io.InputStreamReader; public class BOJ_27889 { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String n = br.readLine(); 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"); } } } //문자열 비교
링크
https://www.acmicpc.net/problem/27889
'알고리즘 문제풀이 > 백준(자바)' 카테고리의 다른 글
[java]백준 마이크로소프트 로고 5338번 (0) 2023.05.16 [java]백준 나머지 3052번 (0) 2023.05.15 [java]백준 새로운 시작 15962번 (0) 2023.05.13 [java]백준 홍익대학교 16394번 (0) 2023.05.12 [java]백준 고려대는 사랑입니다 11942번 (0) 2023.05.11