結果
| 問題 |
No.2034 Anti Lexicography
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-19 12:55:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 165 ms / 2,000 ms |
| コード長 | 574 bytes |
| コンパイル時間 | 358 ms |
| コンパイル使用メモリ | 82,004 KB |
| 実行使用メモリ | 121,164 KB |
| 最終ジャッジ日時 | 2024-10-07 17:22:46 |
| 合計ジャッジ時間 | 4,538 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
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))