CT2176

The Case Flip of Emberfall

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Caravans arrive at the port of Emberfall with crates of inscriptions, and Potter the auditor must account for every last one. Task: Print s with uppercase letters lowercased and lowercase letters uppercased. Input format: One line with a string s of ASCII letters. Output format: Print s with case swapped. Constraints: 1 <= |s| <= 71; s contains ASCII letters only.

Example 1:

Input: ZtSregfZjLZDJSLJbeRHAqykIqgOwAobNpdYnHAg
Output: zTsREGFzJlzdjsljBErhaQYKiQGoWaOBnPDyNhaG

Example 2:

Input: MfaXosbSkigcnXmdkcllVTdsbnXnrnRoTribywIKduWhZYmyAymElFRLrl
Output: mFAxOSBsKIGCNxMDKCLLvtDSBNxNRNrOtRIBYWikDUwHzyMYaYMeLfrlRL

Example 3:

Input: kUxqxdxOGrYKETbDrXRIoEmqXERsjurczZowYAIJmuhHcIZy
Output: KuXQXDXogRyketBdRxriOeMQxerSJURCZzOWyaijMUHhCizY

Constraints:

1 <= |s| <= 71; s contains ASCII letters only.

Loading...
Test Cases:No test cases
No test cases available.
The Case Flip of Emberfall - EASY Coding Problem | CodeTikki