TopCoder

Kevin_Zhang
\(I\ want\ to\ be\ better!\ But\ how.....\)

User's AC Ratio

96.6% (142/147)

Submission's AC Ratio

77.5% (179/231)

Tags

Description

給你三個數字,問能不能以這三個數字做為一個直角三角形的邊長

Input Format

輸入的第一行有一個整數 $N$,代表接下來有幾組測資。

接下來的 $N$ 行,每行有三個整數 $(x,y,z)$($x,y,z<10^ 4$)

Output Format

對於每一行測資,輸出 yes 或 no 表示能不能組成直角三角形。

Sample Input 1

3
3 4 5
1 2 3
5 5 5

Sample Output 1

yes
no
no

Hints

Problem Source

原TIOJ1314 / TFcis10 留社考。Problem Setter:seanwu

Subtasks

No. Testdata Range Score
1 0 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 3000 65536 262144 1