結果

問題 No.18 うーさー暗号
ユーザー yomo3yomo3
提出日時 2020-01-24 20:21:24
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 9,124 KB
最終ジャッジ日時 2023-10-12 04:17:33
合計ジャッジ時間 1,818 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
8,948 KB
testcase_01 AC 26 ms
8,948 KB
testcase_02 AC 26 ms
9,000 KB
testcase_03 AC 26 ms
9,068 KB
testcase_04 AC 26 ms
9,068 KB
testcase_05 AC 25 ms
8,956 KB
testcase_06 AC 25 ms
8,980 KB
testcase_07 AC 25 ms
8,936 KB
testcase_08 AC 25 ms
8,996 KB
testcase_09 AC 25 ms
8,888 KB
testcase_10 AC 27 ms
9,004 KB
testcase_11 AC 25 ms
8,952 KB
testcase_12 AC 25 ms
9,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import string

S = input()
N = len(S)
T = [''] * N

for i in range(N):
    T[i] = string.ascii_uppercase[(ord(S[i])-ord('A')-i-1)%26]

print(''.join(T))
0