https://www.urionlinejudge.com.br/judge/pt/problems/view/1576
Example input:
1 11 5 (x, height, x)
2 6 7
3 13 9
12 7 16
14 3 25
19 18 22
23 13 29
24 4 28
Expected result:
1 11 3 13 9 0 12 7 16 3 19 18 22 3 23 13 29 0
https://www.urionlinejudge.com.br/judge/pt/problems/view/1576
Example input:
1 11 5 (x, height, x)
2 6 7
3 13 9
12 7 16
14 3 25
19 18 22
23 13 29
24 4 28
Expected result:
1 11 3 13 9 0 12 7 16 3 19 18 22 3 23 13 29 0