結果
| 問題 | No.3261 yiwiy9 → yiwiY9 |
| コンテスト | |
| ユーザー |
🦌せ
|
| 提出日時 | 2025-09-06 14:35:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 244 ms |
| コンパイル使用メモリ | 95,844 KB |
| 実行使用メモリ | 83,840 KB |
| 最終ジャッジ日時 | 2026-07-14 20:24:32 |
| 合計ジャッジ時間 | 3,995 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
🦌せ