Submit | All submissions | Best solutions | Back to list |
EIUPH003 - Median of three numbers |
Cho ba số a, b, c. Tìm giá trị ở giữa (trung vị - median) trong ba số đó.
Given three integers a, b, c. Find the median of these three numbers.
Input
A only line contains three integers a, b, c separeted by a space (|a|, |b|, |c| <=10^9).
Output
The median of three given integers.
Example
Input: 10 5 6 Output: 6
Added by: | Ha Minh Ngoc |
Date: | 2015-01-28 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG FSHARP GO JAVA JS-MONKEY NODEJS PHP PYTHON PYPY PYTHON3 RUBY SQLITE SWIFT VB.NET |