結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
🦌せ
|
| 提出日時 | 2025-09-06 14:35:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 82,444 KB |
| 実行使用メモリ | 74,724 KB |
| 最終ジャッジ日時 | 2025-09-06 14:35:26 |
| 合計ジャッジ時間 | 2,786 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 19 |
ソースコード
h,w = map(int,input().split())
s = [list(input()) for _ in range(h)]
for i in range(h):
for j in range(w-1):
if s[i][j] == "y" and s[i][j+1] == "9":
s[i][j] = "Y"
if s[i][j] == "9" and s[i][j+1] == "y":
s[i][j+1] = "Y"
for A in s:
t = ""
for B in A:
t += B
print(t)
🦌せ