結果
問題 |
No.3261 yiwiy9 → yiwiY9
|
ユーザー |
|
提出日時 | 2025-09-06 16:34:17 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 385 ms |
コンパイル使用メモリ | 81,928 KB |
実行使用メモリ | 64,592 KB |
最終ジャッジ日時 | 2025-09-06 16:34:20 |
合計ジャッジ時間 | 2,817 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 19 |
ソースコード
h,w = map(int,input().split()) for j in range(h): t = list(input()) for i in range(w): if t[i]=="y": if 0 <= i-1 and t[i-1]=="9": t[i] = "Y" if i+1 < w and t[i+1] == "9": t[i] = "Y" print("".join(t))