PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#PCBSAU0000008. Lớn nhất và nhỏ nhất (Minimum and Maximum)
HỌC THEO LỘ TRÌNH
2 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Lớn nhất và nhỏ nhất (Minimum and Maximum)
Minimum and Maximum
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given three integers , find their minimum and maximum without conditional statements.
Input
One line containing three integers .
Output
Print the minimum and maximum, separated by one space.
Subtask
- Subtask 1 — 100 points: .
Example
Input
4 -2 9
Output
-2 9
Explanation
Among , the smallest value is and the largest is . The output is -2 9.