From 33d04d818c7567058e283c2134c4caf3f0724d2a Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Mon, 15 Aug 2016 21:25:41 +0800 Subject: [PATCH] Create 100819T_standard.cpp --- Codeforces/Gym/100819T_standard.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Codeforces/Gym/100819T_standard.cpp diff --git a/Codeforces/Gym/100819T_standard.cpp b/Codeforces/Gym/100819T_standard.cpp new file mode 100644 index 0000000..97b47f2 --- /dev/null +++ b/Codeforces/Gym/100819T_standard.cpp @@ -0,0 +1,18 @@ +#include +#include +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; +}