Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: tull

Problemset: ครัวซองค์รสซีซาร์

Language: python

Time: 0.013 second

Submitted On: 2026-06-01 01:16:38

n=int(input())
s=str(input())
for i in s:
     if(i.isalpha()==False):
          print(i,end='')
     else:
          x=ord(i)-n
          if (i.isupper()==True and x<ord('A')):
               x+=26
          if (i.islower()==True and x<ord('a')):
               x+=26
          print(chr(x),end='')