結果

問題 No.3850 作門ハッカソン
コンテスト
ユーザー 2251799813685248
提出日時 2026-11-04 11:23:15
言語 PyPy3
(8.0.1 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 1,096 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 89 ms
コンパイル使用メモリ 64,500 KB
実行使用メモリ 90,384 KB
最終ジャッジ日時 2026-12-04 20:55:58
合計ジャッジ時間 4,596 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge6_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 2 WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline

def solve():
    H,W = map(int, input().split())
    A = [[c for c in input()] for i in range(H)]

    # for i in range(H-1):
    #     l = 0
    #     r = 0
    #     while l < W:
    #         B = [c.replace('?', '#') for c in A[i]]
    #         while r < W and B[l] == B[r]:
    #             r += 1
    #         if B[l] == '#':
    #             pre = False #2つ以上前に壁を設置できるか
    #             pre2 = False #直前を.にできるか
    #             # for j in range(l, r):
    #             #     if A[i+1][j] != '.' and pre and pre2:
    #             #         print("Yes")
    #             #         return
    #             #     if j > l and A[i+1][j-1] != '.':
    #             #         pre = True
    #             #     if A[i+1][j] == '#':
    #             #         pre2 = False
    #             #     else:
    #             #         pre2 = True     
    #         l = r
    for i in range(H-1):
        for j in range(W):
            print(A[i][j])
    print("No")
for i in range(int(input())):
    solve()
0