結果

問題 No.85 TVザッピング(1)
ユーザー flippergo
提出日時 2024-10-27 10:10:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 172 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 82,068 KB
実行使用メモリ 53,472 KB
最終ジャッジ日時 2024-10-27 10:11:00
合計ジャッジ時間 2,778 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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