#K68212. Workout Sessions Checker
Workout Sessions Checker
Workout Sessions Checker
You are given \( T \) test cases. In each test case, you will receive two integers \( N \) and \( D \) on the first line, where \( N \) is the number of users and \( D \) is the threshold workout duration.
This is followed by a line containing \( N \) integers representing the workout session durations of the users. Your task is to determine whether there is at least one user who has a workout session duration strictly greater than \( D \). If there is, output "YES"; otherwise, output "NO".
For each test case, print the answer on a new line.
inputFormat
The input is read from stdin and has the following format:
T N1 D1 duration1,1 duration1,2 ... duration1,N1 N2 D2 duration2,1 duration2,2 ... duration2,N2 ... NT DT durationT,1 durationT,2 ... durationT,NT
All values are separated by whitespace.
outputFormat
For each test case, output a single line containing either "YES" or "NO" depending on whether there exists at least one workout session with a duration strictly greater than \( D \).
## sample3
4 30
10 20 30 40
5 50
55 60 50 45 35
3 10
5 10 15
YES
YES
YES
</p>