結果
問題 |
No.85 TVザッピング(1)
|
ユーザー |
![]() |
提出日時 | 2025-04-15 21:59:44 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 344 bytes |
コンパイル時間 | 197 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2025-04-15 22:00:57 |
合計ジャッジ時間 | 2,215 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 1 |
ソースコード
n, m, c = map(int, input().split()) total = n * m if total % 2 != 0: print("NO") else: if (n == 1 or m == 1): if total == 2: print("YES") else: print("NO") else: if (n % 2 == 0 or m % 2 == 0) and not (n == 2 and m == 2): print("YES") else: print("NO")