#K1871. Overtime Detection for Weekly Work Hours
Overtime Detection for Weekly Work Hours
Overtime Detection for Weekly Work Hours
You are given the work hours for an employee over 7 consecutive days. Your task is to determine whether the employee has exceeded the overtime threshold for that week. Specifically, if the sum of the hours for a week is greater than \(100\) (i.e. \(\sum_{i=1}^{7}h_i > 100\)), then the employee is considered to have exceeded the work hour limit.
The input begins with an integer \(T\) denoting the number of test cases. For each test case, there is a single line containing 7 integers which represent the hours worked each day. For each test case, output a single line containing "Yes" if the total hours exceed 100, otherwise output "No".
inputFormat
The first line contains a single integer \(T\) representing the number of test cases. Each of the following \(T\) lines contains exactly 7 space-separated integers where each integer represents the work hours for a day. It is guaranteed that each test case contains exactly 7 integers.
outputFormat
For each test case, output a single line containing either "Yes" or "No". Output "Yes" if the total number of work hours for that week is strictly greater than 100; otherwise, output "No".
## sample3
8 8 8 8 8 8 8
10 10 10 10 10 10 10
17 17 17 17 17 17 17
No
No
Yes
</p>