about summary refs log tree commit diff
path: root/others/volume1/025.pas
diff options
context:
space:
mode:
Diffstat (limited to 'others/volume1/025.pas')
-rw-r--r--others/volume1/025.pas18
1 files changed, 18 insertions, 0 deletions
diff --git a/others/volume1/025.pas b/others/volume1/025.pas
new file mode 100644
index 0000000..ff9f2c6
--- /dev/null
+++ b/others/volume1/025.pas
@@ -0,0 +1,18 @@
+var
+  x0, y0, x1, y1, x2, y2: int64;
+
+begin
+  read(x0, y0, x1, y1, x2, y2);
+  if x1 = x2 then
+    write(x0, ' ')
+  else if x2 = x0 then
+    write(x1, ' ')
+  else
+    write(x2, ' ');
+  if y1 = y2 then
+    writeln(y0)
+  else if y2 = y0 then
+    writeln(y1)
+  else
+    writeln(y2)
+end.