結果

問題 No.1455 拡張ROTN
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-09 11:29:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 76,100 KB
最終ジャッジ日時 2023-08-28 15:33:02
合計ジャッジ時間 3,544 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,084 KB
testcase_01 AC 71 ms
71,144 KB
testcase_02 AC 83 ms
75,840 KB
testcase_03 AC 82 ms
75,984 KB
testcase_04 AC 80 ms
75,712 KB
testcase_05 AC 77 ms
75,772 KB
testcase_06 AC 83 ms
76,032 KB
testcase_07 AC 83 ms
76,008 KB
testcase_08 AC 82 ms
75,936 KB
testcase_09 AC 79 ms
75,804 KB
testcase_10 AC 76 ms
75,948 KB
testcase_11 AC 78 ms
75,988 KB
testcase_12 AC 76 ms
76,100 KB
testcase_13 AC 69 ms
71,148 KB
testcase_14 AC 80 ms
75,984 KB
testcase_15 AC 73 ms
75,504 KB
testcase_16 AC 75 ms
75,620 KB
testcase_17 AC 71 ms
71,136 KB
testcase_18 AC 79 ms
75,924 KB
testcase_19 AC 76 ms
75,788 KB
testcase_20 AC 77 ms
75,864 KB
testcase_21 AC 76 ms
76,056 KB
testcase_22 AC 72 ms
71,224 KB
testcase_23 AC 79 ms
75,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def henkan(c):
    if "a" <= c < "z" or "A" <= c < "Z" or "0" <= c < "9":
        return chr(ord(c) + 1)
    if c == "z":
        return "a"
    if c == "Z":
        return "A"
    if c == "9":
        return "CpCzNkSuTbEoA"
    assert False

S = input()
n = int(input())
if n >= 36:
    n = 10 + (n - 10) % 26
for _ in range(n):
    S = "".join(map(henkan, S))
print(S)
0