結果

問題 No.18 うーさー暗号
ユーザー aceroidaceroid
提出日時 2017-03-07 20:30:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-09-05 22:33:09
合計ジャッジ時間 1,067 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def conversion(a, b):
    c = ord(a)
    d = c - b
    if d <= 64:
        return chr(d + 26)
    else:
        return chr(d)
inp = input()
out = ""
for i in range(len(inp)):
    x = i + 1
    returns = conversion(inp[i], x)
    out += returns
print(out)
0