結果 : find s algorithm implementation in python