結果

問題 No.85 TVザッピング(1)
ユーザー hhgfhn1
提出日時 2018-12-19 01:17:53
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 365 bytes
コンパイル時間 1,920 ms
コンパイル使用メモリ 74,632 KB
実行使用メモリ 54,300 KB
最終ジャッジ日時 2024-09-25 07:52:01
合計ジャッジ時間 6,694 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n=scanner.nextInt();
		int m=scanner.nextInt();
		int c=scanner.nextInt();
		if(n==1||m==1) {
			System.out.println("NO");
		}else {
			System.out.println((n%2==1&&m%2==1)?"NO":"YES");
		}
	}
}
0