結果

問題 No.2034 Anti Lexicography
ユーザー lloyz
提出日時 2022-08-12 21:31:44
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 317 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 82,076 KB
実行使用メモリ 270,016 KB
最終ジャッジ日時 2024-09-23 01:03:51
合計ジャッジ時間 3,964 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 2 TLE * 8 -- * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

alphs = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
d = dict()
i = 0
for alph in alphs:
    d[alph] = i
    i += 1

n = int(input())
s = input()

ans = ''
for i in range(n):
    idx = d[s[i]]
    ans += alphs[25 - idx]
print(ans)
0