백준 #29699번 Welcome to SMUPC!

jhj·2024년 2월 4일

백준 JAVA

목록 보기
134/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		if(n % 14 == 1) {
			System.out.println("W");
		}else if(n % 14 == 2 || n % 14 == 7) {
			System.out.println("e");
		}else if(n % 14 == 3) {
			System.out.println("l");
		}else if(n % 14 == 4) {
			System.out.println("c");
		}else if(n % 14 == 5 || n % 14 == 9) {
			System.out.println("o");
		}else if(n % 14 == 6) {
			System.out.println("m");
		}else if(n % 14 == 8) {
			System.out.println("T");
		}else if(n % 14 == 10) {
			System.out.println("S");
		}else if(n % 14 == 11) {
			System.out.println("M");
		}else if(n % 14 == 12) {
			System.out.println("U");
		}else if(n % 14 == 13) {
			System.out.println("P");
		}else if(n % 14 == 0) {
			System.out.println("C");
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글