結果

問題 No.85 TVザッピング(1)
ユーザー chiho_miyako
提出日時 2015-04-19 11:48:54
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 452 bytes
コンパイル時間 2,542 ms
コンパイル使用メモリ 74,476 KB
実行使用メモリ 41,516 KB
最終ジャッジ日時 2024-07-04 17:50:57
合計ジャッジ時間 7,053 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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