結果

問題 No.18 うーさー暗号
ユーザー liny_tailliny_tail
提出日時 2020-01-12 22:22:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 150 bytes
コンパイル時間 522 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 9,076 KB
最終ジャッジ日時 2023-08-20 13:41:29
合計ジャッジ時間 1,839 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,048 KB
testcase_01 AC 31 ms
9,020 KB
testcase_02 AC 27 ms
8,948 KB
testcase_03 AC 27 ms
8,952 KB
testcase_04 AC 26 ms
8,988 KB
testcase_05 AC 27 ms
8,992 KB
testcase_06 AC 27 ms
9,000 KB
testcase_07 AC 27 ms
9,020 KB
testcase_08 AC 27 ms
9,052 KB
testcase_09 AC 26 ms
8,908 KB
testcase_10 AC 26 ms
8,952 KB
testcase_11 AC 29 ms
9,076 KB
testcase_12 AC 29 ms
8,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import string
txt = string.ascii_uppercase

S = input().strip()

print(''.join([txt[(txt.index(S[i]) - (i + 1)) % len(txt)] for i in range(len(S))]))
0