結果

問題 No.2034 Anti Lexicography
ユーザー lloyzlloyz
提出日時 2022-08-12 21:34:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,023 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 11,992 KB
実行使用メモリ 10,940 KB
最終ジャッジ日時 2023-10-24 08:34:04
合計ジャッジ時間 8,644 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,048 KB
testcase_01 AC 29 ms
10,048 KB
testcase_02 AC 29 ms
10,048 KB
testcase_03 AC 29 ms
10,048 KB
testcase_04 AC 28 ms
10,048 KB
testcase_05 AC 1,023 ms
10,604 KB
testcase_06 AC 866 ms
10,608 KB
testcase_07 AC 1,017 ms
10,604 KB
testcase_08 AC 893 ms
10,820 KB
testcase_09 AC 781 ms
10,940 KB
testcase_10 AC 900 ms
10,820 KB
testcase_11 AC 891 ms
10,820 KB
testcase_12 AC 895 ms
10,820 KB
testcase_13 AC 29 ms
10,076 KB
testcase_14 AC 29 ms
10,072 KB
testcase_15 AC 29 ms
10,084 KB
testcase_16 AC 30 ms
10,096 KB
testcase_17 AC 31 ms
10,100 KB
権限があれば一括ダウンロードができます

ソースコード

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