시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 988 514 469 51.881%

문제

준규는 집을 짓고 있다. 준규는 모든 벽 모양을 직각 삼각형으로 만드려고 한다. 적절히 나무를 잘라 삼각형을 만들었지만, 준규는 각도를 측정할 수 있는 도구를 가지고 있지 않다. 어쩔 수 없이 줄자를 이용해 삼각형 세 변의 길이를 측정한 다음, 직각 삼각형인지 아닌지를 알아보려고 한다.

삼각형 세 변의 길이가 주어졌을 때, 직각 삼각형인지 아닌지를 구하는 프로그램을 작성하시오.

입력

입력의 첫째 줄에는 테스트 케이스의 개수 n이 주어진다. 각 테스트 케이스는 세 정수 1 ≤ a, b, c ≤ 40000 으로 이루어져 있다. 세 정수는 삼각형 각 변의 길이를 나타낸다.

출력

각 테스트 케이스마다 "Scenario #i:"를 출력한다. i는 테스트 케이스 번호이며, 1부터 시작한다. 그 다음 줄에는 입력으로 주어진 삼각형이 직각 삼각형인 경우에는 "yes", 아닌 경우에는 "no"를 출력한다. 각 테스트 케이스 사이에는 빈 줄을 하나 출력한다.

예제 입력 1

2
36 77 85
40 55 69

예제 출력 1

Scenario #1:
yes

Scenario #2:
no
W3sicHJvYmxlbV9pZCI6Ijc1MTAiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWFjZTBcdWFlMDkgXHVjMjE4XHVkNTU5IiwiZGVzY3JpcHRpb24iOiI8cD5cdWM5MDBcdWFkZGNcdWIyOTQgXHVjOWQxXHVjNzQ0IFx1YzlkM1x1YWNlMCBcdWM3ODhcdWIyZTQuIFx1YzkwMFx1YWRkY1x1YjI5NCBcdWJhYThcdWI0ZTAgXHViY2JkIFx1YmFhOFx1YzU5MVx1Yzc0NCBcdWM5YzFcdWFjMDEgXHVjMGJjXHVhYzAxXHVkNjE1XHVjNzNjXHViODVjIFx1YjljY1x1YjRkY1x1YjgyNFx1YWNlMCBcdWQ1NWNcdWIyZTQuIFx1YzgwMVx1YzgwOFx1ZDc4OCBcdWIwOThcdW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