結果 : simple algorithm questions