結果

問題 No.85 TVザッピング(1)
ユーザー gorugo30gorugo30
提出日時 2021-02-26 17:53:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 82,500 KB
実行使用メモリ 53,544 KB
最終ジャッジ日時 2024-04-10 07:36:38
合計ジャッジ時間 2,247 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,224 KB
testcase_01 AC 35 ms
52,132 KB
testcase_02 AC 35 ms
52,792 KB
testcase_03 AC 35 ms
52,324 KB
testcase_04 AC 34 ms
52,628 KB
testcase_05 AC 34 ms
52,616 KB
testcase_06 AC 35 ms
52,212 KB
testcase_07 AC 35 ms
52,552 KB
testcase_08 AC 35 ms
52,952 KB
testcase_09 AC 36 ms
52,708 KB
testcase_10 AC 36 ms
52,516 KB
testcase_11 AC 35 ms
51,944 KB
testcase_12 AC 35 ms
52,480 KB
testcase_13 AC 34 ms
52,628 KB
testcase_14 AC 37 ms
52,280 KB
testcase_15 AC 33 ms
52,012 KB
testcase_16 AC 35 ms
52,392 KB
testcase_17 AC 37 ms
52,516 KB
testcase_18 AC 36 ms
52,068 KB
testcase_19 AC 36 ms
52,388 KB
testcase_20 AC 36 ms
52,940 KB
testcase_21 AC 35 ms
52,680 KB
testcase_22 AC 35 ms
52,004 KB
testcase_23 AC 34 ms
53,544 KB
testcase_24 AC 35 ms
51,692 KB
testcase_25 AC 36 ms
51,868 KB
testcase_26 AC 35 ms
51,632 KB
testcase_27 AC 36 ms
52,616 KB
testcase_28 AC 35 ms
51,836 KB
testcase_29 AC 36 ms
52,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M, C = map(int, input().split())
if N == 1 or M == 1:
    if N == 2 or M == 2:
        print("YES")
    else:
        print("NO")
    exit()
if (N * M) % 2 == 1:
    print("NO")
else:
    print("YES")
0