結果

問題 No.86 TVザッピング(2)
コンテスト
ユーザー lam6er
提出日時 2025-04-16 15:32:36
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 250 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 229 ms
コンパイル使用メモリ 95,856 KB
実行使用メモリ 79,004 KB
最終ジャッジ日時 2026-07-12 14:10:07
合計ジャッジ時間 3,709 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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")
0