- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- int t, n, p[4], cs = 0;
- cin >> t;
- while(t--){
- cin >> p[0] >> p[1] >> p[2];
- sort(p, p+3);
- cout << "Case " << ++cs << ": ";
- puts(((p[0]*p[0])+(p[1]*p[1])) == (p[2]*p[2])?"yes":"no");
- }
- return 0;
- }
No comments:
Post a Comment