結果
問題 | No.2034 Anti Lexicography |
ユーザー |
|
提出日時 | 2022-09-15 10:21:39 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 375 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 25,384 KB |
最終ジャッジ日時 | 2024-12-16 01:51:02 |
合計ジャッジ時間 | 32,233 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 WA * 3 TLE * 10 |
ソースコード
c=int(input())st=str(input())import stringasc=string.ascii_letterssum=0result=""for i in range(c):sum+=(int(ord(st[i]))-96)*(26**(c-i-1))re=(26**c-sum)for i in range(c):if i==c-1:result+=chr(int((re%(26**(c-i))-re%(26**(c-i-1)))/(26**(c-i-1)))+97)else:result+=chr(int((re%(26**(c-i))-re%(26**(c-i-1)))/(26**(c-i-1)))+98)print(result)