結果

問題 No.85 TVザッピング(1)
ユーザー あかりき
提出日時 2021-02-08 13:48:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 82,660 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-07-05 16:28:32
合計ジャッジ時間 2,273 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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