結果

問題 No.85 TVザッピング(1)
ユーザー kanra661kanra661
提出日時 2014-12-09 22:22:49
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 526 bytes
コンパイル時間 5,071 ms
コンパイル使用メモリ 71,508 KB
実行使用メモリ 55,976 KB
最終ジャッジ日時 2023-09-02 12:15:01
合計ジャッジ時間 7,700 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
55,776 KB
testcase_01 AC 129 ms
55,792 KB
testcase_02 AC 133 ms
55,700 KB
testcase_03 AC 132 ms
55,800 KB
testcase_04 AC 131 ms
55,684 KB
testcase_05 AC 131 ms
55,316 KB
testcase_06 AC 132 ms
55,532 KB
testcase_07 AC 132 ms
55,576 KB
testcase_08 AC 135 ms
55,588 KB
testcase_09 AC 130 ms
55,592 KB
testcase_10 AC 131 ms
55,584 KB
testcase_11 AC 133 ms
55,664 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 133 ms
55,544 KB
testcase_15 AC 129 ms
55,520 KB
testcase_16 AC 132 ms
55,748 KB
testcase_17 AC 131 ms
55,320 KB
testcase_18 AC 134 ms
55,864 KB
testcase_19 AC 134 ms
55,500 KB
testcase_20 AC 133 ms
55,684 KB
testcase_21 AC 131 ms
55,812 KB
testcase_22 AC 133 ms
55,660 KB
testcase_23 AC 135 ms
55,576 KB
testcase_24 AC 131 ms
55,516 KB
testcase_25 AC 132 ms
55,764 KB
testcase_26 AC 131 ms
55,580 KB
testcase_27 AC 131 ms
55,976 KB
testcase_28 AC 133 ms
55,684 KB
testcase_29 AC 135 ms
55,576 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("YES");
      return;
    }
  if(n * m == n || n * m == n){
      System.out.println("NO");
      return;
    }
    if(n % 2 == 0 || m % 2 == 0){
       System.out.println("YES");
       return;
    }
    System.out.println("NO");
  }
}
0