結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,536 KB
testcase_01 AC 123 ms
56,136 KB
testcase_02 AC 124 ms
53,896 KB
testcase_03 AC 127 ms
55,804 KB
testcase_04 AC 125 ms
55,752 KB
testcase_05 AC 124 ms
56,008 KB
testcase_06 AC 126 ms
55,792 KB
testcase_07 AC 125 ms
56,128 KB
testcase_08 AC 124 ms
53,708 KB
testcase_09 WA -
testcase_10 AC 124 ms
55,604 KB
testcase_11 AC 124 ms
56,084 KB
testcase_12 AC 124 ms
55,524 KB
testcase_13 AC 123 ms
55,472 KB
testcase_14 WA -
testcase_15 AC 125 ms
55,796 KB
testcase_16 AC 124 ms
55,760 KB
testcase_17 AC 124 ms
55,716 KB
testcase_18 AC 125 ms
56,144 KB
testcase_19 AC 121 ms
55,832 KB
testcase_20 AC 124 ms
55,948 KB
testcase_21 AC 124 ms
56,108 KB
testcase_22 AC 123 ms
56,008 KB
testcase_23 AC 123 ms
55,752 KB
testcase_24 AC 123 ms
55,896 KB
testcase_25 AC 123 ms
56,028 KB
testcase_26 AC 122 ms
55,824 KB
testcase_27 AC 123 ms
55,928 KB
testcase_28 AC 126 ms
56,068 KB
testcase_29 AC 123 ms
56,108 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(n == 1 || m == 1 || (n % 2 != 0) && (m % 2 != 0)){
			System.out.println("NO");
		}else{
			System.out.println("YES");
		}
		sc.close();
	}
}
0