結果
問題 |
No.86 TVザッピング(2)
|
ユーザー |
![]() |
提出日時 | 2025-04-15 21:46:10 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 82,320 KB |
実行使用メモリ | 54,672 KB |
最終ジャッジ日時 | 2025-06-20 14:01:54 |
合計ジャッジ時間 | 2,156 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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")