結果

問題 No.85 TVザッピング(1)
ユーザー rlangevinrlangevin
提出日時 2023-01-16 01:21:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 5,000 ms
コード長 194 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 86,856 KB
実行使用メモリ 71,712 KB
最終ジャッジ日時 2023-08-28 15:49:18
合計ジャッジ時間 3,529 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,388 KB
testcase_01 AC 70 ms
71,388 KB
testcase_02 AC 69 ms
71,712 KB
testcase_03 AC 69 ms
71,576 KB
testcase_04 AC 68 ms
71,376 KB
testcase_05 AC 72 ms
71,604 KB
testcase_06 AC 69 ms
71,468 KB
testcase_07 AC 68 ms
71,388 KB
testcase_08 AC 69 ms
71,644 KB
testcase_09 AC 67 ms
71,484 KB
testcase_10 AC 68 ms
71,316 KB
testcase_11 AC 68 ms
71,420 KB
testcase_12 AC 68 ms
71,640 KB
testcase_13 AC 67 ms
71,392 KB
testcase_14 AC 68 ms
71,368 KB
testcase_15 AC 69 ms
71,636 KB
testcase_16 AC 69 ms
71,100 KB
testcase_17 AC 68 ms
71,556 KB
testcase_18 AC 68 ms
71,144 KB
testcase_19 AC 68 ms
71,140 KB
testcase_20 AC 67 ms
71,100 KB
testcase_21 AC 68 ms
71,308 KB
testcase_22 AC 69 ms
71,616 KB
testcase_23 AC 69 ms
71,440 KB
testcase_24 AC 68 ms
71,092 KB
testcase_25 AC 67 ms
71,516 KB
testcase_26 AC 67 ms
71,372 KB
testcase_27 AC 69 ms
71,452 KB
testcase_28 AC 69 ms
71,480 KB
testcase_29 AC 68 ms
71,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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