1 solutions

  • 0
    @ 2025-3-3 16:33:48

    Python :

    
    def fanma(c):
        if  c.isalpha():
            if c.isupper():
                n=ord(c)-ord('A')
                return chr(ord('Z')-n)
            else:
                n=ord(c)-ord('a')
                return chr(ord('z')-n)
        else:
            return c
    str1=input().strip()
    for item in str1:
        print(fanma(item),end="")
    
    
    
    
    • 1

    Information

    ID
    10730
    Time
    1000ms
    Memory
    32MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By