結果 : most complex algorithm