結果 : find s algorithm in python