結果
問題 |
No.3261 yiwiy9 → yiwiY9
|
ユーザー |
|
提出日時 | 2025-09-06 13:22:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 818 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 82,280 KB |
実行使用メモリ | 69,468 KB |
最終ジャッジ日時 | 2025-09-06 13:22:19 |
合計ジャッジ時間 | 2,784 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
H, W = (int(x) for x in input().split()) stage=[] for i in range(H): S = list(map(str, input())) stage.append(S) ans=[] for i in range(H): row=[] left = 0 for j in range(W): if left > 0: left -= 1 continue if stage[i][j] == ".": row.append(".") elif stage[i][j] == "y": row.append("y") row.append("i") row.append("w") row.append("i") row.append("Y") row.append("9") left = 5 elif stage[i][j] == "9": row.append("9") row.append("Y") row.append("i") row.append("w") row.append("i") row.append("y") left = 5 ans.append(row) for i in ans: print("".join(i))