BETA

Difficulty Level: Easy

Submissions: 828 Accuracy:

25.12%

Right angled triangles
     

Given three integers a, b and c as triplets. The task is to check if it is possible to make right angled triangle or not. 

Input:
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains three integers a, b and c.

Output:
For each test case, Print "Yes", if it is possible make right angled triangle else print "No".

Constraints:
1<=T<=600
1<=a,b,c<=1018

Example:
Input:
2
3 4 5
2 5 8

Output:
Yes
No

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Arun Tyagi

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.