結果

問題 No.85 TVザッピング(1)
ユーザー Pump0129Pump0129
提出日時 2018-11-28 15:58:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 476 bytes
コンパイル時間 3,322 ms
コンパイル使用メモリ 71,488 KB
実行使用メモリ 56,164 KB
最終ジャッジ日時 2023-09-09 05:48:12
合計ジャッジ時間 7,079 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,772 KB
testcase_01 AC 121 ms
55,848 KB
testcase_02 AC 119 ms
55,912 KB
testcase_03 AC 121 ms
55,696 KB
testcase_04 AC 120 ms
56,052 KB
testcase_05 AC 120 ms
55,644 KB
testcase_06 AC 122 ms
55,824 KB
testcase_07 AC 121 ms
56,036 KB
testcase_08 AC 122 ms
55,508 KB
testcase_09 WA -
testcase_10 AC 121 ms
56,068 KB
testcase_11 AC 123 ms
55,612 KB
testcase_12 AC 121 ms
55,280 KB
testcase_13 AC 125 ms
55,692 KB
testcase_14 WA -
testcase_15 AC 123 ms
55,528 KB
testcase_16 AC 121 ms
55,740 KB
testcase_17 AC 119 ms
55,784 KB
testcase_18 AC 120 ms
55,528 KB
testcase_19 AC 123 ms
56,164 KB
testcase_20 AC 119 ms
55,952 KB
testcase_21 AC 118 ms
55,840 KB
testcase_22 AC 122 ms
55,524 KB
testcase_23 AC 123 ms
55,788 KB
testcase_24 AC 123 ms
55,672 KB
testcase_25 AC 120 ms
55,720 KB
testcase_26 AC 127 ms
55,640 KB
testcase_27 AC 120 ms
55,392 KB
testcase_28 AC 119 ms
55,352 KB
testcase_29 AC 119 ms
55,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package net.ipipip0129.yukicoder.no85;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int pos_x = scan.nextInt();
        int pos_y = scan.nextInt();

        if ((1 < pos_x && 1 < pos_y) &&
                (pos_x % 2 == 0 || pos_y % 2 == 0)) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
0