結果 : brute force algorithm formula