結果
問題 | No.85 TVザッピング(1) |
ユーザー |
![]() |
提出日時 | 2023-01-16 01:21:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 44 ms / 5,000 ms |
コード長 | 194 bytes |
コンパイル時間 | 447 ms |
コンパイル使用メモリ | 82,216 KB |
実行使用メモリ | 53,616 KB |
最終ジャッジ日時 | 2024-12-29 19:26:26 |
合計ジャッジ時間 | 2,647 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
N, M, C = map(int, input().split())if N > M:N, M = M, Nif N == 1 and M == 2:print("YES")elif N == 1 or M == 1:print("NO")elif N * M % 2:print("NO")else:print("YES")