#P7593. 「EZEC-8」凑数
「EZEC-8」凑数
Description
Given the positive integers from to , determine whether it is possible to choose exactly numbers such that the sum of the chosen numbers is (each number can be used at most once).
Input Format
This problem contains multiple test cases.
The first line contains a positive integer , the number of test cases.
For each test case, one line contains three positive integers .
Output Format
For each test case:
Output one line with a string, Yes or No, indicating whether it is possible to choose exactly numbers such that their sum is .
3
5 2 10
5 2 5
5 2 2
No
Yes
No
Hint
This problem uses bundled testing.
- Subtask 1 (15 points): .
- Subtask 2 (15 points): .
- Subtask 3 (20 points): .
- Subtask 4 (15 points): .
- Subtask 5 (15 points): .
- Subtask 6 (20 points): no special constraints.
For of the testdata, , , .
Translated by ChatGPT 5
京公网安备 11011102002149号