結果
問題 |
No.85 TVザッピング(1)
|
ユーザー |
![]() |
提出日時 | 2025-04-16 15:42:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 344 bytes |
コンパイル時間 | 202 ms |
コンパイル使用メモリ | 81,608 KB |
実行使用メモリ | 53,324 KB |
最終ジャッジ日時 | 2025-04-16 15:45:41 |
合計ジャッジ時間 | 2,094 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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")