結果

問題 No.2034 Anti Lexicography
ユーザー neginagineginagi
提出日時 2022-08-19 12:55:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 183 ms / 2,000 ms
コード長 574 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 121,088 KB
最終ジャッジ日時 2024-04-16 18:06:59
合計ジャッジ時間 4,498 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
86,656 KB
testcase_01 AC 137 ms
86,656 KB
testcase_02 AC 136 ms
87,040 KB
testcase_03 AC 137 ms
87,040 KB
testcase_04 AC 136 ms
86,400 KB
testcase_05 AC 180 ms
120,832 KB
testcase_06 AC 182 ms
120,832 KB
testcase_07 AC 181 ms
120,960 KB
testcase_08 AC 181 ms
120,832 KB
testcase_09 AC 182 ms
120,576 KB
testcase_10 AC 181 ms
120,832 KB
testcase_11 AC 183 ms
121,088 KB
testcase_12 AC 183 ms
120,832 KB
testcase_13 AC 141 ms
87,168 KB
testcase_14 AC 141 ms
87,424 KB
testcase_15 AC 144 ms
87,552 KB
testcase_16 AC 139 ms
87,552 KB
testcase_17 AC 141 ms
87,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
INF = float("INF")
MOD = 10 ** 9 + 7
MOD2 = 998244353
from heapq import heappop, heappush
import math
from collections import Counter, deque
from itertools import accumulate, combinations, combinations_with_replacement, permutations
from bisect import bisect_left, bisect_right
import decimal

n = int(input())
s = list(map(lambda x : ord(x) - ord("a"), list(input().rstrip())))
trns = [chr(25 - i + ord("a")) for i in range(26)]
ans = []
for i in range(n):
    ans.append(trns[s[i]])

print("".join(ans))
0