結果

問題 No.85 TVザッピング(1)
ユーザー kanra661kanra661
提出日時 2014-12-09 22:18:18
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 437 bytes
コンパイル時間 2,420 ms
コンパイル使用メモリ 71,684 KB
実行使用メモリ 57,576 KB
最終ジャッジ日時 2023-09-02 12:14:35
合計ジャッジ時間 8,479 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
55,808 KB
testcase_01 AC 134 ms
55,824 KB
testcase_02 AC 134 ms
55,604 KB
testcase_03 AC 135 ms
55,560 KB
testcase_04 AC 134 ms
55,696 KB
testcase_05 AC 133 ms
55,760 KB
testcase_06 AC 134 ms
55,744 KB
testcase_07 AC 135 ms
55,872 KB
testcase_08 AC 135 ms
55,668 KB
testcase_09 WA -
testcase_10 AC 134 ms
57,576 KB
testcase_11 AC 137 ms
55,688 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 133 ms
55,584 KB
testcase_18 WA -
testcase_19 AC 135 ms
55,480 KB
testcase_20 AC 134 ms
55,744 KB
testcase_21 AC 133 ms
55,376 KB
testcase_22 AC 130 ms
55,564 KB
testcase_23 AC 130 ms
55,828 KB
testcase_24 AC 131 ms
55,804 KB
testcase_25 AC 135 ms
55,568 KB
testcase_26 AC 134 ms
55,560 KB
testcase_27 AC 134 ms
55,320 KB
testcase_28 AC 130 ms
55,584 KB
testcase_29 AC 130 ms
55,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    int k = sc.nextInt();
    if(n * m == 2){
      System.out.println("NO");
      return;
    }
    if(n % 2 == 0 || m % 2 == 0){
       System.out.println("YES");
       return;
    }
    System.out.println("NO");
  }
}
0