結果

問題 No.18 うーさー暗号
ユーザー mintmint
提出日時 2018-08-01 03:01:33
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 275 bytes
コンパイル時間 735 ms
コンパイル使用メモリ 7,140 KB
実行使用メモリ 6,452 KB
最終ジャッジ日時 2023-10-19 20:37:52
合計ジャッジ時間 1,648 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,452 KB
testcase_01 AC 11 ms
6,452 KB
testcase_02 AC 12 ms
6,452 KB
testcase_03 AC 12 ms
6,452 KB
testcase_04 AC 12 ms
6,452 KB
testcase_05 AC 12 ms
6,452 KB
testcase_06 AC 12 ms
6,452 KB
testcase_07 AC 12 ms
6,452 KB
testcase_08 AC 12 ms
6,452 KB
testcase_09 AC 12 ms
6,452 KB
testcase_10 AC 11 ms
6,452 KB
testcase_11 AC 11 ms
6,452 KB
testcase_12 AC 12 ms
6,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#! /usr/bin/env python
# -*- coding: utf-8 -*- #

def Usa_Cipher_Dec(s):
    strlist = list(s)
    dec = ''
    for i, c in enumerate(strlist):
        dec += chr((ord(c) - ord('A') - (i+1)) % 26 + ord('A'))
    return dec

S = raw_input()
ans = Usa_Cipher_Dec(S)

print ans
0