#K56807. Interesting String Checker
Interesting String Checker
Interesting String Checker
Given a string, determine whether it is "interesting" based on the following criteria:
- The string has a length of at least \(10\) characters.
- It contains at least one lowercase letter.
- It contains at least one uppercase letter.
- It contains at least one digit.
If all of the conditions are met, the string is considered interesting.
For each test case, output YES
if the string is interesting; otherwise, output NO
.
inputFormat
The first line contains an integer \(T\) denoting the number of test cases.
Each of the following \(T\) lines contains a single string \(s\).
outputFormat
For each test case, output a single line with YES
if the string is interesting and NO
otherwise.
3
Hogwarts2021
hello123
InterestingString1
YES
NO
YES
</p>