結果

問題 No.18 うーさー暗号
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-08 09:12:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 5,000 ms
コード長 288 bytes
コンパイル時間 429 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 73,284 KB
最終ジャッジ日時 2023-08-29 00:08:06
合計ジャッジ時間 2,530 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
73,084 KB
testcase_01 AC 100 ms
72,824 KB
testcase_02 AC 95 ms
73,284 KB
testcase_03 AC 97 ms
73,072 KB
testcase_04 AC 97 ms
73,008 KB
testcase_05 AC 101 ms
73,068 KB
testcase_06 AC 99 ms
73,180 KB
testcase_07 AC 99 ms
73,248 KB
testcase_08 AC 98 ms
73,068 KB
testcase_09 AC 99 ms
72,896 KB
testcase_10 AC 99 ms
73,008 KB
testcase_11 AC 101 ms
73,000 KB
testcase_12 AC 98 ms
73,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

S = list(input())[:-1]

def f(x,i):
    return chr((ord(x)-ord('A')-i)%26+ord('A'))
    
    
S = [f(a,i+1) for i,a in enumerate(S)]
print(''.join(S))
0