結果

問題 No.85 TVザッピング(1)
ユーザー ntuda
提出日時 2024-01-05 23:34:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 288 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 82,112 KB
実行使用メモリ 53,624 KB
最終ジャッジ日時 2024-09-27 19:11:16
合計ジャッジ時間 1,900 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M, C = map(int, input().split())

def prt(x):
    if x == 0:
        print("NO")
        exit()
    else:
        print("YES")
        exit()

if N > M:
    N, M = M, N

if N == 1:
    if M <= 2:
        prt(1)
    else:
        prt(0)

if N % 2 == 0 or M % 2 == 0:
    prt(1)

prt(0)
0