結果

問題 No.3850 作門ハッカソン
コンテスト
ユーザー Kurao
提出日時 2026-11-03 18:08:41
言語 PyPy3
(8.0.1 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 437 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 84 ms
コンパイル使用メモリ 64,124 KB
実行使用メモリ 60,800 KB
最終ジャッジ日時 2026-12-04 20:54:16
合計ジャッジ時間 4,432 ms
ジャッジサーバーID
(参考情報)
judge6_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

h,w=map(int,input().split())
s=[input()+"." for _ in range(h)]
w+=1

for i in range(h-1):
    t=[]
    for j in range(w):
        if s[i][j]!=".":
            t.append(s[i+1][j])
            continue
        ok=[k for k in range(len(t)) if t[k]!="."]
        if ok:
            l=min(ok)
            r=max(ok)
            if "." in t[l+1:r] or "?" in t[l+1:r]:
                print("Yes")
                exit()
        t=[]
print("No")
0