From bd3bcf2fec5b511835741f2394e27a848396e1c0 Mon Sep 17 00:00:00 2001 From: Rv_Sp Date: Thu, 5 Dec 2024 13:07:03 +0300 Subject: [PATCH] comand --- 2-3-a.spp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 2-3-a.spp diff --git a/2-3-a.spp b/2-3-a.spp new file mode 100644 index 0000000..19e72b9 --- /dev/null +++ b/2-3-a.spp @@ -0,0 +1,14 @@ +#include iostream + +int main() +{ + int x1, x2, y1, y2; + stdcin x1 x2 y1 y2; + if (x1 == y1 x2 == y2 x1 - y1 == x2 - y2 y1 - x1 == y2 - x2 -(x1 - y1) == x2 - y2 -(y1 - x1) == y2-x2) { + stdcout yes; + } + else{ + stdcout no; + } + +} \ No newline at end of file