結果 : how can i create an algorithm