АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1774. Median of three

Time Limit: 1 seconds
Memory Limit:262144KB
Points:100
View Problem Statistics Submit Problem added debug

Даны три числа. Найдите их медиану — число, расположившееся бы на среднем месте, если бы эти числа были упорядочены по возрастанию.

Input

Три вещественных числа, не превосходящие по модулю 109, разделённые пробелами или переводами строк.

Output

Одно вещественное число - ответ.

Sample

InputOutput
2 1 2
2

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest VML for 7th form, branches /
1773. C1 - Max of 3 1774. 1775. C3 - Equation 1776. C4 - Kind of triangle 1777. C5a - Are cells have the same color?
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / VML: branches and loops contest for beginners /
1774. 1174. 1 - Stars-2 1782. 2 - One step of king 1810. 3 - Power and Factorial
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Repeating Branching /
1773. 01 - Max of 3 1774. 1776. 03 - Kind of triangle 1783. 04 - Perfect square 1784. 05 - Perfect Cube
time generating 0.109 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.