Chef and Lockout Draws Codechef Problem With Solution | Python Coder

Veröffentlicht am: 29 Januar 2022
auf dem Kanal: Python Coder
435
2

Bob and Alice are having a lockout match between them. There are three problems in the contest worth A, B, and C points respectively. Only the first player to solve a problem gets points for that problem. It is impossible for Bob and Alice to solve a problem at the same time. Chef wants to know if there is any chance of a draw if Bob and Alice manage to solve all 3 problems. A draw occurs when both players end with equal number of points.

Input Format
First line will contain T, number of testcases. Then the testcases follow.
Each testcase contains of a single line of input, three space separated integers A, B, and C.
Output Format
For each testcase, output YES if the match can end in a draw, and NO otherwise.

You may print each character of the string in uppercase or lowercase (for example, the strings "yEs", "yes", "Yes" and "YES" will all be treated as identical).

Sample Input 1
3
2 5 2
4 2 2
3 5 5

Sample Output 1
NO
YES
NO


Auf dieser Seite können Sie das Online-Video Chef and Lockout Draws Codechef Problem With Solution | Python Coder mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Python Coder 29 Januar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 435 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!