백준 #17388번 와글와글 숭고한

jhj·2024년 2월 12일

백준 JAVA

목록 보기
251/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int s = sc.nextInt();
		int k = sc.nextInt();
		int h = sc.nextInt();
		
		if(s + k + h >= 100) {
			System.out.println("OK");
		}else {
			if(s >= k && k >= h || k >= s && s >= h) {
				System.out.println("Hanyang");
			}else if(s >= h && h >= k || h >= s && s >= k) {
				System.out.println("Korea");
			}else {
				System.out.println("Soongsil");
			}
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글