Barcode Nickname
Time limit1sMemory limit1024 MB
Given a string of only 'l' and 'I', the task is to flip the case of each character and print the result.
- Level
Easy1 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem
This problem uses both the characters 'l' and 'I'. Outside the examples, the lowercase 'l' is shown in red and the uppercase 'I' in blue .
A barcode nickname is a nickname that uses only the lowercase and the uppercase . People use them to make their online accounts anonymous. These two characters are hard to tell apart, so a barcode nickname makes it hard to find out who the user is.
There is a simple way to tell such nicknames apart. Flip the case of every character, and becomes 'L' while becomes 'i'. This makes it easy to tell the two look-alike characters apart.
Given a barcode nickname, write a program that flips the case of every character and prints the result.
Input
The first line contains the length of the barcode nickname ().
The second line contains the barcode nickname ( or ).
Output
Print the input string with the case of every character flipped, on one line.