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