結果

問題 No.85 TVザッピング(1)
ユーザー scachescache
提出日時 2014-12-04 23:36:50
言語 Java
(openjdk 23)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 465 bytes
コンパイル時間 3,418 ms
コンパイル使用メモリ 74,496 KB
実行使用メモリ 41,520 KB
最終ジャッジ日時 2024-10-04 17:10:30
合計ジャッジ時間 8,545 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main85 {
	public static void main(String[] args) {
		Main85 p = new Main85();
	}

	public Main85() {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int c = sc.nextInt();
		
		if((n==1 || m==1) && n*m>2)
			System.out.println("NO");
		else if((n*m)%2==0)
			System.out.println("YES");
		else
			System.out.println("NO");
	
	}

	public void solve() {
	}

}
0