結果

問題 No.3000 Optimal Run Length Encoding
ユーザー lam6er
提出日時 2025-03-31 17:59:52
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 609 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 82,332 KB
実行使用メモリ 67,660 KB
最終ジャッジ日時 2025-03-31 18:00:56
合計ジャッジ時間 16,485 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 142
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input().strip()

# Mapping derived from the provided samples and additional observations
mapping = {
    'a': 'c',
    'b': 'q',
    'c': 'l',
    'd': 'm',
    'e': 'd',
    'f': 'r',
    'g': 's',
    'h': 't',
    'i': 'f',
    'j': 'x',
    'k': 'y',
    'l': 'z',
    'm': 'b',
    'n': 'a',
    'o': 'n',
    'p': 'o',
    'q': 'p',
    'r': 'u',
    's': 'v',
    't': 'w',
    'u': 'e',
    'v': 'g',
    'w': 'h',
    'x': 'i',
    'y': 'j',
    'z': 'k'  # Assuming z maps to k based on completing missing mappings
}

result = []
for c in s:
    result.append(mapping[c])

print(''.join(result))
0