結果

問題 No.85 TVザッピング(1)
ユーザー atkrymatkrym
提出日時 2016-10-25 22:10:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 501 bytes
コンパイル時間 2,260 ms
コンパイル使用メモリ 71,524 KB
実行使用メモリ 56,288 KB
最終ジャッジ日時 2023-08-15 19:17:21
合計ジャッジ時間 8,074 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,896 KB
testcase_01 AC 125 ms
55,536 KB
testcase_02 AC 123 ms
56,012 KB
testcase_03 AC 124 ms
55,936 KB
testcase_04 AC 121 ms
56,020 KB
testcase_05 AC 122 ms
56,220 KB
testcase_06 AC 123 ms
56,040 KB
testcase_07 AC 123 ms
55,900 KB
testcase_08 AC 122 ms
56,244 KB
testcase_09 WA -
testcase_10 AC 126 ms
55,764 KB
testcase_11 AC 122 ms
56,000 KB
testcase_12 AC 120 ms
55,512 KB
testcase_13 AC 122 ms
55,836 KB
testcase_14 WA -
testcase_15 AC 121 ms
56,108 KB
testcase_16 AC 124 ms
56,060 KB
testcase_17 AC 121 ms
56,160 KB
testcase_18 AC 122 ms
54,088 KB
testcase_19 AC 122 ms
55,676 KB
testcase_20 AC 120 ms
56,040 KB
testcase_21 AC 120 ms
55,816 KB
testcase_22 AC 122 ms
55,712 KB
testcase_23 AC 123 ms
56,288 KB
testcase_24 AC 121 ms
55,848 KB
testcase_25 AC 123 ms
56,192 KB
testcase_26 AC 124 ms
55,656 KB
testcase_27 AC 123 ms
55,572 KB
testcase_28 AC 122 ms
54,220 KB
testcase_29 AC 121 ms
55,920 KB
権限があれば一括ダウンロードができます

ソースコード

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