結果

問題 No.85 TVザッピング(1)
ユーザー atkrym
提出日時 2016-10-25 22:10:11
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 501 bytes
コンパイル時間 1,905 ms
コンパイル使用メモリ 74,112 KB
実行使用メモリ 55,012 KB
最終ジャッジ日時 2024-11-24 03:38:55
合計ジャッジ時間 6,494 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

public class Main {
    private static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int x = sc.nextInt();
        int y = sc.nextInt();
        int c = sc.nextInt();
        int n = x*y;
        if (x == 1 || y == 1) {
            System.out.println("NO");
        } else if (n%2!=0) {
            System.out.println("NO");
        } else {
            System.out.println("YES");
        }
    }
}
0