結果

問題 No.1455 拡張ROTN
ユーザー rin204
提出日時 2021-08-05 18:07:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 200 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 82,576 KB
実行使用メモリ 54,508 KB
最終ジャッジ日時 2024-09-16 15:22:07
合計ジャッジ時間 2,033 ms
ジャッジサーバーID
(参考情報)
judge6 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 2 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
n = int(input())

def f(s):
    if s.islower():
        return chr((ord(s) - 97 + n) % 26 + 97)
    else:
        return chr((ord(s) - 65 + n) % 26 + 65)
        
print("".join(map(f, S)))
0