Password Generator
Monocarp is going to register on the Codeforces website, but he can't come up with a sufficiently secure password. The requirements that his password must meet are as follows:
- the password must consist of digits, as well as uppercase and lowercase letters of the Latin alphabet;
- there must be exactly digits, exactly uppercase letters, and exactly lowercase letters;
- for security, no two adjacent characters in the password should be the same. The lowercase and uppercase versions of the same letter are considered different characters.
Write a program that generates a password that meets all the requirements.
Input
The first line contains a single integer () — the number of test cases.
Each test case consists of one line containing three integers , , and ().
Output
For each test case, output one line containing any suitable password. It can be shown that there is always at least one password that meets the requirements.
2 2 1 6 3 3 6
abaCaba42 b3sTpAs5w0rD
Discussions & Comments
Share your approach or ask questions about this problem (0)
You must be logged in to comment or start a discussion on this problem.
Log InNo comments yet. Be the first to comment!
Actions
Open on CodeforcesAbout Platform
Problem Discussions
0Have questions or want to share your solution approach? Join the discussion.
View / write comments