There are $n$ integer points $(x, y, z)$ on a 3D coordinate system. Sort them in ascending order by $x$, then by $y$ (if points have the same value of $x$), and then by $z$ (if points have the same value of $x$ and $y$).
Input:
3
3 4 3
2 4 3
2 1 6
Output:
2 1 6
2 4 3
3 4 3
Points Sorting | |
Brewing potion | |
Smallest possible | |
Distance minimization | |
Segment | |
Cucumber | |
Maximum value arrangement | |
Buttons game | |
Building fence | |
Balance |