mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 100819T_standard.cpp
This commit is contained in:
parent
d99adeaa91
commit
33d04d818c
18
Codeforces/Gym/100819T_standard.cpp
Normal file
18
Codeforces/Gym/100819T_standard.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user