Right angled triangles
Submissions: 2262   Accuracy:

26.31%

  Difficulty: Easy   Marks: 2

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
Author: arun03


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



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


to report an issue on this page.