10212번 풀이 [Java]

sua·2022년 8월 24일
0

Baekjoon

목록 보기
125/161
post-thumbnail

문제


풀이

public class Main {
    public static void main(String[] args) throws Exception {
        int a = 1;
        int b = 0;
        int n = b + (int) (Math.random() * ((a - b) + 1));
        String s = "Korea";
        if (n % 2 == 0) {
            s = "Yonsei";
        }
        System.out.print(s);
    }
}
profile
가보자고

0개의 댓글