結果
| 問題 |
No.3261 yiwiy9 → yiwiY9
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-07 12:34:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 112 ms / 2,000 ms |
| コード長 | 522 bytes |
| コンパイル時間 | 1,150 ms |
| コンパイル使用メモリ | 82,772 KB |
| 実行使用メモリ | 78,076 KB |
| 最終ジャッジ日時 | 2025-09-07 12:34:40 |
| 合計ジャッジ時間 | 4,652 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
import re
H, W = map(int, input().split())
for i in range(H):
s = input()
l = 0
T = []
while(l <W):
if s[l] == '.':
T.append('.')
l += 1
elif s[l] == 'y':
T.append('y')
l += 6
else:
T.append('9')
l += 6
for c in T:
if c == '.':
print('.', end='')
elif c == 'y':
print('yiwiY9', end='')
else :
print('9Yiwiy', end='')
print()