結果

問題 No.18 うーさー暗号
ユーザー pypypymipypypymi
提出日時 2022-02-25 13:40:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 758 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 71,316 KB
最終ジャッジ日時 2023-09-16 05:46:38
合計ジャッジ時間 2,684 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
71,244 KB
testcase_01 AC 83 ms
71,164 KB
testcase_02 AC 84 ms
71,180 KB
testcase_03 AC 84 ms
71,312 KB
testcase_04 AC 82 ms
71,252 KB
testcase_05 AC 80 ms
71,088 KB
testcase_06 AC 82 ms
71,024 KB
testcase_07 AC 77 ms
71,028 KB
testcase_08 AC 80 ms
71,316 KB
testcase_09 AC 78 ms
71,224 KB
testcase_10 AC 77 ms
71,228 KB
testcase_11 AC 77 ms
70,980 KB
testcase_12 AC 79 ms
71,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

alpha = "abcdefghijklmnopqrstuvwxyz".upper()
s = input()
result = ''
for i,v in enumerate(s):
    result+=alpha[(alpha.index(v)-(i+1))%26]
print(result)
0