Determine whether a given string/array condition can be satisfied by a simple direct check or construction, as suggested by the easy Codeforces problem setup.
Problem
You are given a simple input instance from an easy Codeforces-style task. Your goal is to process the provided data and determine the required result according to the problem rules.
This problem is intended to be solved with straightforward implementation and careful handling of the input format. The central task is usually to inspect the sequence or string, apply the stated condition, and print the appropriate answer.
Because the exact original statement is not available here, use the title and difficulty as guidance: this is an easy-level simulation/implementation problem with minimal algorithmic depth.
Input Format
- The first line contains the number of test cases .
- Each test case contains a small instance described in the input.
- The exact per-test-case format depends on the original problem statement.
Output Format
- For each test case, print the required answer on its own line.
Constraints
- The original constraints are unavailable in the source metadata.
- Assume the intended solution is linear or near-linear per test case.
Hints
- Focus on directly simulating the required condition.
- Pay attention to edge cases involving very small inputs.
- Keep the solution simple and avoid unnecessary data structures.
Input Format
- Read test cases.
- For each test case, read the instance described by the statement.
- Process each case independently.
Output Format
- Print one answer per test case.
- Follow the exact formatting required by the problem.
Constraints
- Easy-level implementation problem.
- Exact official bounds are not provided in the metadata.
Example 1
Input
1 abc
Output
YES
Explanation
Illustrative example only: a single test case is processed and a valid answer is printed.
Premium problem context
Unlock deeper context for this problem
Premium adds guided hints, editorial links, similar variants, discussion resources, and concept maps so you can understand why a problem matters, not just solve it once.