結果

問題 No.85 TVザッピング(1)
ユーザー kanra661kanra661
提出日時 2014-12-09 22:23:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 526 bytes
コンパイル時間 1,937 ms
コンパイル使用メモリ 74,560 KB
実行使用メモリ 54,276 KB
最終ジャッジ日時 2024-04-15 05:10:27
合計ジャッジ時間 6,557 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
54,056 KB
testcase_01 AC 128 ms
54,020 KB
testcase_02 AC 114 ms
52,744 KB
testcase_03 AC 123 ms
54,068 KB
testcase_04 AC 126 ms
54,112 KB
testcase_05 AC 126 ms
53,860 KB
testcase_06 AC 126 ms
54,020 KB
testcase_07 AC 128 ms
53,880 KB
testcase_08 AC 129 ms
54,000 KB
testcase_09 AC 130 ms
54,256 KB
testcase_10 AC 121 ms
54,160 KB
testcase_11 AC 124 ms
54,056 KB
testcase_12 AC 122 ms
54,192 KB
testcase_13 AC 125 ms
53,844 KB
testcase_14 AC 126 ms
53,832 KB
testcase_15 AC 125 ms
54,040 KB
testcase_16 AC 126 ms
54,072 KB
testcase_17 AC 125 ms
54,216 KB
testcase_18 AC 128 ms
54,064 KB
testcase_19 AC 128 ms
54,276 KB
testcase_20 AC 128 ms
53,988 KB
testcase_21 AC 126 ms
54,084 KB
testcase_22 AC 127 ms
53,984 KB
testcase_23 AC 114 ms
40,028 KB
testcase_24 AC 110 ms
40,072 KB
testcase_25 AC 123 ms
41,364 KB
testcase_26 AC 108 ms
40,056 KB
testcase_27 AC 111 ms
40,356 KB
testcase_28 AC 122 ms
41,024 KB
testcase_29 AC 125 ms
41,536 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 == m){
      System.out.println("NO");
      return;
    }
    if(n % 2 == 0 || m % 2 == 0){
       System.out.println("YES");
       return;
    }
    System.out.println("NO");
  }
}
0