Câu 4. Chi phí:
/ckfinder/userfiles/files/2018-2019%20%20THTB%20STR%20.pdf
Input
5 6 3 1 2 7 4
Output
7
Nguồn: Bài 4 THT B STR 2019