結果

問題 No.85 TVザッピング(1)
ユーザー chiho_miyakochiho_miyako
提出日時 2015-04-19 11:48:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 452 bytes
コンパイル時間 1,904 ms
コンパイル使用メモリ 70,884 KB
実行使用メモリ 56,244 KB
最終ジャッジ日時 2023-09-18 00:44:43
合計ジャッジ時間 7,230 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,672 KB
testcase_01 AC 124 ms
55,784 KB
testcase_02 AC 125 ms
55,604 KB
testcase_03 AC 125 ms
55,784 KB
testcase_04 AC 124 ms
55,496 KB
testcase_05 AC 122 ms
55,772 KB
testcase_06 AC 122 ms
55,676 KB
testcase_07 AC 123 ms
55,940 KB
testcase_08 AC 124 ms
56,104 KB
testcase_09 WA -
testcase_10 AC 126 ms
55,796 KB
testcase_11 AC 123 ms
55,880 KB
testcase_12 AC 122 ms
55,636 KB
testcase_13 AC 122 ms
55,632 KB
testcase_14 WA -
testcase_15 AC 123 ms
55,628 KB
testcase_16 AC 123 ms
55,636 KB
testcase_17 AC 124 ms
53,740 KB
testcase_18 AC 124 ms
55,552 KB
testcase_19 AC 123 ms
55,764 KB
testcase_20 AC 125 ms
55,604 KB
testcase_21 AC 122 ms
55,788 KB
testcase_22 AC 128 ms
56,244 KB
testcase_23 AC 124 ms
55,500 KB
testcase_24 AC 124 ms
56,036 KB
testcase_25 AC 123 ms
55,692 KB
testcase_26 AC 125 ms
55,628 KB
testcase_27 AC 127 ms
55,760 KB
testcase_28 AC 125 ms
55,620 KB
testcase_29 AC 125 ms
55,892 KB
権限があれば一括ダウンロードができます

ソースコード

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