結果

問題 No.85 TVザッピング(1)
ユーザー 👑 rin204rin204
提出日時 2022-01-20 10:26:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 70,872 KB
最終ジャッジ日時 2023-08-15 08:36:58
合計ジャッジ時間 3,925 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
70,652 KB
testcase_01 AC 77 ms
70,744 KB
testcase_02 AC 78 ms
70,612 KB
testcase_03 AC 77 ms
70,488 KB
testcase_04 AC 78 ms
70,360 KB
testcase_05 AC 76 ms
70,484 KB
testcase_06 AC 77 ms
70,352 KB
testcase_07 AC 77 ms
70,716 KB
testcase_08 AC 77 ms
70,712 KB
testcase_09 AC 77 ms
70,648 KB
testcase_10 AC 75 ms
70,348 KB
testcase_11 AC 77 ms
70,856 KB
testcase_12 AC 78 ms
70,828 KB
testcase_13 AC 77 ms
70,832 KB
testcase_14 AC 77 ms
70,620 KB
testcase_15 AC 77 ms
70,688 KB
testcase_16 AC 77 ms
70,800 KB
testcase_17 AC 77 ms
70,872 KB
testcase_18 AC 78 ms
70,736 KB
testcase_19 AC 77 ms
70,472 KB
testcase_20 AC 76 ms
70,744 KB
testcase_21 AC 74 ms
70,628 KB
testcase_22 AC 77 ms
70,828 KB
testcase_23 AC 77 ms
70,712 KB
testcase_24 AC 77 ms
70,752 KB
testcase_25 AC 75 ms
70,728 KB
testcase_26 AC 76 ms
70,788 KB
testcase_27 AC 77 ms
70,756 KB
testcase_28 AC 76 ms
70,480 KB
testcase_29 AC 78 ms
70,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m, c = map(int, input().split())
if n == 1 or m == 1:
    if n * m == 2:
        print("YES")
    else:
        print("NO")
elif n * m % 2 == 1:
    print("NO")
else:
    print("YES")
0