https://docs.google.com/document/d/1CQ3g7D7ml9doirPeRptEfpRNzWUxc6xGljrxfY4P3f8/edit?usp=sharing
更多解法:http://gary03170317.pixnet.net/blog