結果
問題 |
No.3261 yiwiy9 → yiwiY9
|
ユーザー |
|
提出日時 | 2025-09-07 11:28:46 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 71 ms / 2,000 ms |
コード長 | 465 bytes |
コンパイル時間 | 485 ms |
コンパイル使用メモリ | 82,520 KB |
実行使用メモリ | 74,180 KB |
最終ジャッジ日時 | 2025-09-07 11:28:50 |
合計ジャッジ時間 | 3,363 ms |
ジャッジサーバーID (参考情報) |
judge / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
import re H, W = map(int, input().split()) grid = [] for _ in range(H): temp = "" s = input() i = 0 while i < len(s): if s[i] == '.': temp += s[i] i += 1 continue if s[i] == '9': temp += "9Yiwiy" i += 6 continue if s[i] == 'y': temp += "yiwiY9" i += 6 continue grid.append(temp) for g in grid: print(g)