Optimal Point

2020 VietMX 0

When the river brought Gerda to the house of the Old Lady who Knew Magic, this lady decided to make Gerda her daughter. She wants […]

Optimal Point on a Line

2020 VietMX 0

You are given n points on a line with their coordinates x i. Find the point x so the sum of distances to the given points is minimal. Input The first […]