結果

問題 No.18 うーさー暗号
ユーザー HagianHagian
提出日時 2021-06-01 05:41:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 256 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-11-09 00:06:49
合計ジャッジ時間 1,450 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(str(input().rstrip()))
decodel = []
for v in range(1,len(S)+1):
    ord_v = ord(S[v-1]) - (65 + v)
    while ord_v < 0:
        ord_v += 26
    ord_v = ord_v + 65
    res = chr(ord_v)
    decodel.append(res)
decode = "".join(decodel)
print(decode)
0