結果
| 問題 |
No.1455 拡張ROTN
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-31 21:04:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 387 bytes |
| コンパイル時間 | 338 ms |
| コンパイル使用メモリ | 82,416 KB |
| 実行使用メモリ | 54,400 KB |
| 最終ジャッジ日時 | 2024-12-15 09:08:27 |
| 合計ジャッジ時間 | 1,683 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 2 WA * 20 |
ソースコード
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(2*10**5+10)
write = lambda x: sys.stdout.write(x+"\n")
debug = lambda x: sys.stderr.write(x+"\n")
s = input()
n = int(input())
def sub(c):
if c.lower()==c:
return chr((ord(c)-ord("a")+n)%26 + ord("a"))
else:
return chr((ord(c)-ord("A")+n)%26 + ord("A"))
print("".join(map(sub, s)))