結果

問題 No.18 うーさー暗号
ユーザー あかりきあかりき
提出日時 2021-02-08 06:23:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 149 bytes
コンパイル時間 2,109 ms
コンパイル使用メモリ 86,352 KB
実行使用メモリ 71,184 KB
最終ジャッジ日時 2023-09-18 09:35:03
合計ジャッジ時間 2,233 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,040 KB
testcase_01 AC 75 ms
70,868 KB
testcase_02 AC 75 ms
71,048 KB
testcase_03 AC 76 ms
71,088 KB
testcase_04 AC 76 ms
70,748 KB
testcase_05 AC 76 ms
71,048 KB
testcase_06 AC 76 ms
71,124 KB
testcase_07 AC 80 ms
71,132 KB
testcase_08 AC 78 ms
71,036 KB
testcase_09 AC 77 ms
70,848 KB
testcase_10 AC 77 ms
71,132 KB
testcase_11 AC 78 ms
71,120 KB
testcase_12 AC 78 ms
71,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=list(input())
c=[chr(i) for i in range(65, 65+26)]
ans=[]
for i in range(len(s)):
  x=c.index(s[i])
  ans.append(c[(x-i-1)%26])
print(''.join(ans))
0