例子:数组A[9=[65,70,7580,8560,550,45] (1)(2)(3)(4)(5)(6)(7)(8)(9)(10)i 657075808560555045+∞2 654575808560555070 550808560557570 654550558560807570+ 654550556085807570 604550556585807570
例子:数组 A[1:9]=[65,70,75,80,85,60,55,50,45] 60 45 50 55 65 85 80 75 70 + (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) i p 65 70 75 80 85 60 55 50 45 + 2 9 65 45 50 80 85 60 55 75 70 + 4 7 65 45 50 55 85 60 80 75 70 + 5 6 6 > 5 65 45 50 55 60 85 80 75 70 + 1 5 65 45 75 80 85 60 55 50 70 + 3 8