結果

問題 No.18 うーさー暗号
ユーザー kanoekakihitokanoekakihito
提出日時 2015-09-03 18:56:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 204 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 8,432 KB
最終ジャッジ日時 2023-09-21 11:52:16
合計ジャッジ時間 1,253 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,412 KB
testcase_01 AC 19 ms
8,328 KB
testcase_02 AC 20 ms
8,368 KB
testcase_03 AC 21 ms
8,388 KB
testcase_04 AC 20 ms
8,376 KB
testcase_05 AC 18 ms
8,320 KB
testcase_06 AC 18 ms
8,344 KB
testcase_07 AC 19 ms
8,372 KB
testcase_08 AC 19 ms
8,388 KB
testcase_09 AC 19 ms
8,432 KB
testcase_10 AC 19 ms
8,292 KB
testcase_11 AC 19 ms
8,416 KB
testcase_12 AC 19 ms
8,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
text = deque([i for i in input()])
result = deque()
for i in range(1, len(text) + 1):
    result.append(chr((ord(text.popleft()) - 65 - i) % 26 + 65))
print("".join(result))
0