結果
問題 | 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 sysinput = sys.stdin.readlinesys.setrecursionlimit(10 ** 7)INF = float("INF")MOD = 10 ** 9 + 7MOD2 = 998244353from heapq import heappop, heappushimport mathfrom collections import Counter, dequefrom itertools import accumulate, combinations, combinations_with_replacement, permutationsfrom bisect import bisect_left, bisect_rightimport decimaln = 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))