結果

問題 No.2034 Anti Lexicography
ユーザー lloyzlloyz
提出日時 2022-08-12 21:31:44
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 317 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 81,652 KB
実行使用メモリ 266,488 KB
最終ジャッジ日時 2023-10-24 08:24:28
合計ジャッジ時間 4,175 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
57,832 KB
testcase_01 AC 39 ms
53,388 KB
testcase_02 AC 38 ms
53,388 KB
testcase_03 AC 38 ms
53,388 KB
testcase_04 AC 38 ms
53,388 KB
testcase_05 TLE -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

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