Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: tull

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

Language: python

Time: 0.013 second

Submitted On: 2026-06-01 01:15:32

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