백준

백준 9655 - Java

으엉어엉 2024. 11. 5. 13:31
728x90

import java.io.*;

public class BJ9655 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(br.readLine());
        //상근 승 :SK  창영 : CY
        if(N%2==1) {
            System.out.println("SK");
        }else {
            System.out.println("CY");
        }
    }
}

 

서로 홀수만 입력하기 때문에 나머지로 판단이 가능하다.

728x90