LearnPy Hub
← Arena
IntermediateRating 1400

Median of Two Lists

Print the median of all values from two sorted lists (average of the two middle values if the count is even), with 1 decimal.

Input

Two lines of sorted integers.

Output

A number.

Sample 1

Input
1 3
2
Output
2.0

Sample 2

Input
1 2
3 4
Output
2.5
solution.py
Output appears here
Median of Two Lists · Python Arena problem · LearnPy Hub