mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
19 lines
393 B
C++
19 lines
393 B
C++
#include<cstdio>
|
|
#include<algorithm>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
int a, b, c, d, e, f;
|
|
scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f);
|
|
if (a > c) swap(a, c);
|
|
if (b > c) swap(b, c);
|
|
if (a > b) swap(a, b);
|
|
if (d > f) swap(d, f);
|
|
if (e > f) swap(e, f);
|
|
if (d > e) swap(d, e);
|
|
if (a == d && b == e && c == f && a*a + b*b == c*c)
|
|
printf("YES\n");
|
|
else printf("NO\n");
|
|
return 0;
|
|
}
|