結果

問題 No.85 TVザッピング(1)
ユーザー brthyyjp
提出日時 2021-08-09 14:57:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 184 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 82,136 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-09-21 14:02:08
合計ジャッジ時間 2,585 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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