結果

問題 No.85 TVザッピング(1)
ユーザー kanra661kanra661
提出日時 2014-12-09 22:22:49
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 526 bytes
コンパイル時間 2,104 ms
コンパイル使用メモリ 74,256 KB
実行使用メモリ 54,392 KB
最終ジャッジ日時 2024-06-11 18:58:20
合計ジャッジ時間 6,265 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 2
権限があれば一括ダウンロードができます

ソースコード

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