結果

問題 No.85 TVザッピング(1)
ユーザー kanra661kanra661
提出日時 2014-12-09 22:20:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 438 bytes
コンパイル時間 2,311 ms
コンパイル使用メモリ 71,496 KB
実行使用メモリ 56,080 KB
最終ジャッジ日時 2023-09-02 12:14:43
合計ジャッジ時間 7,613 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,660 KB
testcase_01 AC 126 ms
55,660 KB
testcase_02 AC 128 ms
55,772 KB
testcase_03 AC 127 ms
53,292 KB
testcase_04 AC 127 ms
55,692 KB
testcase_05 AC 126 ms
55,820 KB
testcase_06 AC 128 ms
55,612 KB
testcase_07 AC 132 ms
55,912 KB
testcase_08 AC 130 ms
55,744 KB
testcase_09 AC 129 ms
55,976 KB
testcase_10 AC 131 ms
55,224 KB
testcase_11 AC 129 ms
55,684 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 129 ms
55,496 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 128 ms
55,672 KB
testcase_18 WA -
testcase_19 AC 126 ms
55,520 KB
testcase_20 AC 127 ms
55,988 KB
testcase_21 AC 131 ms
55,524 KB
testcase_22 AC 127 ms
55,484 KB
testcase_23 AC 128 ms
55,836 KB
testcase_24 AC 130 ms
55,688 KB
testcase_25 AC 130 ms
55,660 KB
testcase_26 AC 129 ms
55,272 KB
testcase_27 AC 129 ms
55,700 KB
testcase_28 AC 129 ms
55,568 KB
testcase_29 AC 129 ms
55,920 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 % 2 == 0 || m % 2 == 0){
       System.out.println("YES");
       return;
    }
    System.out.println("NO");
  }
}
0