Alias Diversity Gate
Preview mode. Log in to edit, run, submit, and save progress.
Alias Diversity Gate
A registration service classifies each alias by the number of distinct lowercase letters it contains. If the number of distinct letters is even, the alias goes to the OPEN queue. If the number is odd, it goes to the REVIEW queue. Classify each submitted alias. Input Format: The first line contains t, the number of test cases. Each test case contains one lowercase alias. Output Format: For each test case, print OPEN or REVIEW.
Examples
1 wjmzbmr
OPEN
Explanation: The distinct letters are w, j, m, z, b, and r. There are six distinct letters, so the alias goes to OPEN.
Approach hint
Start with the simplest clear approach, explain the trade-off, then move toward the cleaner answer.
Common mistake
Skipping assumptions, edge cases, or trade-offs can make an otherwise good answer feel incomplete.