結果

問題 No.85 TVザッピング(1)
ユーザー syokeininsyokeinin
提出日時 2014-12-04 23:50:16
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 4,070 ms
コンパイル使用メモリ 71,768 KB
実行使用メモリ 56,648 KB
最終ジャッジ日時 2023-09-02 08:35:47
合計ジャッジ時間 8,637 ms
ジャッジサーバーID
(参考情報)
judge14 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,736 KB
testcase_01 AC 125 ms
55,760 KB
testcase_02 AC 125 ms
55,772 KB
testcase_03 AC 127 ms
56,416 KB
testcase_04 AC 126 ms
56,076 KB
testcase_05 AC 125 ms
55,772 KB
testcase_06 AC 126 ms
55,956 KB
testcase_07 AC 126 ms
55,792 KB
testcase_08 AC 125 ms
55,876 KB
testcase_09 WA -
testcase_10 AC 130 ms
55,728 KB
testcase_11 AC 125 ms
55,584 KB
testcase_12 AC 126 ms
55,648 KB
testcase_13 AC 126 ms
56,176 KB
testcase_14 WA -
testcase_15 AC 127 ms
56,648 KB
testcase_16 AC 126 ms
53,396 KB
testcase_17 AC 128 ms
55,668 KB
testcase_18 AC 127 ms
56,084 KB
testcase_19 AC 127 ms
56,004 KB
testcase_20 AC 127 ms
56,160 KB
testcase_21 AC 126 ms
55,944 KB
testcase_22 AC 127 ms
55,988 KB
testcase_23 AC 127 ms
56,028 KB
testcase_24 AC 125 ms
55,944 KB
testcase_25 AC 125 ms
55,816 KB
testcase_26 AC 125 ms
55,768 KB
testcase_27 AC 126 ms
55,864 KB
testcase_28 AC 126 ms
55,684 KB
testcase_29 AC 125 ms
55,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class QQ5 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int c = sc.nextInt();
		if(m == 1 && n == 1){
			System.out.println("YES");
		}
		if(n == 1 || m == 1 || (n % 2 != 0) && (m % 2 != 0)){
			System.out.println("NO");
		}else{
			System.out.println("YES");
		}
		sc.close();
	}
}
0