mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 100819T.cpp
This commit is contained in:
parent
de7be26e39
commit
6e1190ec58
27
Codeforces/Gym/100819T.cpp
Normal file
27
Codeforces/Gym/100819T.cpp
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#include <cstdio>
|
||||||
|
#include <algorithm>
|
||||||
|
using namespace std;
|
||||||
|
int a[3];
|
||||||
|
int b[3];
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
for(int i=0;i<3;i++)
|
||||||
|
{
|
||||||
|
scanf("%d",&a[i]);
|
||||||
|
}
|
||||||
|
for(int i=0;i<3;i++)
|
||||||
|
{
|
||||||
|
scanf("%d",&b[i]);
|
||||||
|
}
|
||||||
|
sort(a,a+3);
|
||||||
|
sort(b,b+3);
|
||||||
|
if(a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2] && a[2]*a[2]==a[0]*a[0]+a[1]*a[1] )
|
||||||
|
{
|
||||||
|
printf("YES\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("NO\n");
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user