結果

問題 No.2034 Anti Lexicography
ユーザー lloyz
提出日時 2022-08-12 21:34:15
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,181 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,596 KB
最終ジャッジ日時 2024-09-23 01:14:08
合計ジャッジ時間 10,010 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

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']
convert = dict()
i = 0
for alph in alphs:
    convert[alph] = alphs[25 - i]
    i += 1

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

ans = ''
for i in range(n):
    ans += convert[s[i]]
print(ans)
0