結果
問題 |
No.86 TVザッピング(2)
|
ユーザー |
![]() |
提出日時 | 2025-04-15 21:49:08 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 82,780 KB |
実行使用メモリ | 52,736 KB |
最終ジャッジ日時 | 2025-06-20 14:01:57 |
合計ジャッジ時間 | 2,241 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 12 |
ソースコード
n, m = map(int, input().split()) grid = [input().strip() for _ in range(n)] count = 0 for row in grid: count += row.count('.') if count % 2 != 0: print("NO") else: if n >= 2 and m >= 2: print("YES") else: print("NO")