코드포스 4A (codeforces 4A)

코드포스 4A (codeforces 4A) 문제 풀이 및 코드 (description and code)

목차

Problem - 4A - Codeforces

코드

import java.io.*;

public class CF4A {
    static int w;
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        w = Integer.parseInt(br.readLine());
        bw.write((w % 2 == 0 && w > 2) ? "YES\n" : "NO\n");
        bw.flush();bw.close();
    }
}

설명

Copied to clipboard