結果

問題 No.18 うーさー暗号
ユーザー supepepesupepepe
提出日時 2019-01-25 14:35:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 412 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 10,508 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2023-10-14 09:48:50
合計ジャッジ時間 1,255 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,852 KB
testcase_01 AC 15 ms
7,916 KB
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 #

# -*- coding: utf-8 -*-
alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']

mojiretsu = list(input())
count = int(len(mojiretsu))

decode_mojiretsu = ""

for i in range (count):
    moji = mojiretsu[i]
    decode_1 = alphabet.index(moji)
    i += 1
    decode_mojiretsu += alphabet[decode_1 - i]
print (decode_mojiretsu)
0