結果

問題 No.18 うーさー暗号
ユーザー steek79steek79
提出日時 2015-10-13 10:10:09
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 6,636 KB
実行使用メモリ 6,032 KB
最終ジャッジ日時 2023-09-28 12:47:02
合計ジャッジ時間 1,043 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

alp = "ABCDEFGHIJKLMNOPQRSTUVEXYZ"

def decode(str, n):
    bef = alp.find(str)
    aft = bef - n - 1
    return alp[aft]

ans = ""
inp = raw_input()
for i in xrange(len(inp)):
    ans += decode(inp[i], i)

print ans
0