Trong 1 cuộc thi chạy nếu bạn vượt qua người thứ 2 thì bạn đứng thứ 2
d/s : minh se dung o vi tri thu hai tai vi neu minh vuot qua ban dau tien => minh se dan dau ma minh vuot qua ban thu hai => minh dung thu hai
Ta co : vuot nguoi 1 => dung thu 1
vuot nguoi 2 = > dung thu 2
vuot nguoi 3 => dung thu 3
.................=> ..........
Cu nhu vay , minh vuot qua nguoi dung thu may thi luc do minh cung se dung nguoi ma minhvuot noi cach khac goi la the cho nen van o vi tri do
222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222