Submission #8611131


Source Code Expand

Copy
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(readline())
S = [int(x) - ord('A') for x in read().rstrip()]

S = [(x + N) % 26 for x in S]

answer = ''.join(chr(x + ord('A')) for x in S)
print(answer)

Submission Info

Submission Time
Task B - ROT N
User maspy
Language Python (3.4.3)
Score 200
Code Size 289 Byte
Status AC
Exec Time 21 ms
Memory 3188 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 20
Set Name Test Cases
Sample sample_01, sample_02, sample_03
All random_01, random_02, random_03, random_04, random_05, random_06, random_07, random_08, random_09, random_10, random_11, random_12, random_13, random_14, random_15, random_16, random_17, sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
random_01 AC 19 ms 3060 KB
random_02 AC 18 ms 3060 KB
random_03 AC 18 ms 3060 KB
random_04 AC 18 ms 3060 KB
random_05 AC 17 ms 3060 KB
random_06 AC 21 ms 3188 KB
random_07 AC 18 ms 3060 KB
random_08 AC 20 ms 3188 KB
random_09 AC 17 ms 3060 KB
random_10 AC 19 ms 3060 KB
random_11 AC 17 ms 3060 KB
random_12 AC 19 ms 3060 KB
random_13 AC 21 ms 3188 KB
random_14 AC 21 ms 3188 KB
random_15 AC 18 ms 3060 KB
random_16 AC 21 ms 3188 KB
random_17 AC 17 ms 2940 KB
sample_01 AC 17 ms 2940 KB
sample_02 AC 17 ms 2940 KB
sample_03 AC 17 ms 2940 KB