Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- int v1[30], v2[30];
- cin >> v1[0] >> v1[1] >> v1[2];
- cin >> v2[0] >> v2[1] >> v2[2];
- sort(v1, v1+3);
- sort(v2, v2+3);
- for(int i=0; i<3; i++){
- if(v1[i]!=v2[i]){
- cout << "Nao" << endl;
- return 0;
- }
- }
- if((v1[0]*v1[0] + v1[1]*v1[1]) == v1[2]*v1[2])
- cout << "Sim" << endl;
- else
- cout << "Nao" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement