結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-15 21:58:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 344 bytes |
| コンパイル時間 | 266 ms |
| コンパイル使用メモリ | 82,628 KB |
| 実行使用メモリ | 53,728 KB |
| 最終ジャッジ日時 | 2025-04-15 21:59:30 |
| 合計ジャッジ時間 | 2,236 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / 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")
lam6er