結果

問題 No.18 うーさー暗号
ユーザー zimphazimpha
提出日時 2017-12-07 22:16:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 143 bytes
コンパイル時間 1,477 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 71,440 KB
最終ジャッジ日時 2023-09-21 12:55:39
合計ジャッジ時間 1,927 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,152 KB
testcase_01 AC 68 ms
71,440 KB
testcase_02 AC 67 ms
71,212 KB
testcase_03 AC 67 ms
71,208 KB
testcase_04 AC 68 ms
71,212 KB
testcase_05 AC 69 ms
71,256 KB
testcase_06 AC 70 ms
71,152 KB
testcase_07 AC 69 ms
71,244 KB
testcase_08 AC 71 ms
71,256 KB
testcase_09 AC 77 ms
70,988 KB
testcase_10 AC 70 ms
71,264 KB
testcase_11 AC 68 ms
71,300 KB
testcase_12 AC 68 ms
71,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
t = [''] * len(s)
for i, x in enumerate(s):
  t[i] = chr(ord('A') + ((ord(x) - ord('A') - i - 1) % 26 + 26) % 26)
print(''.join(t))
0