안녕하세요. BeyondTheClouds 입니다.
이번에 풀어볼 문제는 17388번 와글와글 숭고한 입니다.

제가 작성한 코드는 아래와 같습니다.
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();
int sum = (S + K + H);
if (sum >= 100) {
System.out.println("OK");
} else {
if (S < K && S < H) {
System.out.println("Soongsil");
} else if (K < S && K < H) {
System.out.println("Korea");
} else {
System.out.println("Hanyang");
}
}
}
}
마지막으로 위 문제의 링크 남겨두도록 하겠습니다!
https://www.acmicpc.net/problem/17388
★ 제가 푼 방법이 항상 정답은 아닙니다. 더 좋은 방법이 있다면 댓글로 알려주세요! ★