Median of three numbers
Xem dạng PDF
Gửi bài giải
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch, TEXT
Điểm:
1,00
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Dạng bài
Ngôn ngữ cho phép
Median of Three Numbers
Cho ba số nguyên a, b, c. Tìm giá trị ở giữa, hay còn gọi là trung vị (median), của ba số đó.
Given three integers a, b, c. Find the median of these three numbers.
Input
A single line contains three integers a, b, c, separated by spaces.
|a|, |b|, |c| <= 10^9
Output
Output the median of the three given integers.
Example
Input
10 5 6
Output
6
Bình luận