본문 바로가기
Algorithm & SQL/BAEKJOON

백준 JAVA 17388 와글와글 숭고한

by YoonJong 2022. 6. 19.
728x90

 

 

package BAEKJOON;

import java.util.Scanner;

public class NO17388 {
    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 > H && K > H) {
                System.out.println("Hanyang");
            } else if ( S > K && H > K) {
                System.out.println("Korea");
            } else if (S < K && S < H) {
                System.out.println("Soongsil");
            }
        }
    }
}
728x90

'Algorithm & SQL > BAEKJOON' 카테고리의 다른 글

백준 JAVA 2920 음계  (0) 2022.06.21
백준 JAVA 1000 A+B  (0) 2022.06.21
백준 JAVA 10093 숫자  (0) 2022.06.19
백준 JAVA 1568 새  (0) 2022.06.18
백준 JAVA 1264 모음의 개수  (0) 2022.06.18

댓글