Codeforces Round #615 (Div. 3)B. Collecting Packages
There is a robot in a warehouse and n packages he wants to collect. The warehouse can be represented as a coordinate grid. Initially, the robot stays at the point (0,0). The i-th package is at the poi...