結果

問題 No.85 TVザッピング(1)
ユーザー 👑 colognecologne
提出日時 2022-01-26 19:55:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 5,000 ms
コード長 236 bytes
コンパイル時間 479 ms
コンパイル使用メモリ 87,364 KB
実行使用メモリ 71,680 KB
最終ジャッジ日時 2023-08-25 01:59:22
合計ジャッジ時間 3,940 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,344 KB
testcase_01 AC 69 ms
71,340 KB
testcase_02 AC 71 ms
71,632 KB
testcase_03 AC 72 ms
71,444 KB
testcase_04 AC 69 ms
71,148 KB
testcase_05 AC 69 ms
71,264 KB
testcase_06 AC 67 ms
71,120 KB
testcase_07 AC 65 ms
71,388 KB
testcase_08 AC 67 ms
71,264 KB
testcase_09 AC 70 ms
71,368 KB
testcase_10 AC 70 ms
71,392 KB
testcase_11 AC 67 ms
71,340 KB
testcase_12 AC 69 ms
71,536 KB
testcase_13 AC 66 ms
71,584 KB
testcase_14 AC 65 ms
71,464 KB
testcase_15 AC 70 ms
71,448 KB
testcase_16 AC 72 ms
71,576 KB
testcase_17 AC 72 ms
71,576 KB
testcase_18 AC 70 ms
71,324 KB
testcase_19 AC 68 ms
71,268 KB
testcase_20 AC 69 ms
71,680 KB
testcase_21 AC 70 ms
71,580 KB
testcase_22 AC 69 ms
71,364 KB
testcase_23 AC 68 ms
71,328 KB
testcase_24 AC 70 ms
71,168 KB
testcase_25 AC 70 ms
71,364 KB
testcase_26 AC 66 ms
71,260 KB
testcase_27 AC 65 ms
71,452 KB
testcase_28 AC 69 ms
71,352 KB
testcase_29 AC 68 ms
71,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def input(): return sys.stdin.readline().rstrip()


def main():
    N, M, C = map(int, input().split())
    print('YES' if (N*M % 2 == 0 and N > 1 and M > 1) or (N*M == 2) else 'NO')


if __name__ == '__main__':
    main()
0