@@ -0,0 +1,385 @@
+class Solution:%0A    # @param n: an integer%0A    # @return: a boolean which equals to True if the first player will win%0A    def firstWillWin(self, n):%0A        # write your code here%0A        dp = %5BFalse%5D * 3%0A%0A        cur = 0%0A        for i in xrange(n):%0A            dp%5B-1%5D = not (dp%5B0%5D and dp%5B1%5D)%0A            dp%5Bcur%5D = dp%5B-1%5D%0A            cur = (cur + 1) %25 2%0A        %0A        return dp%5B-1%5D%0A

Create CoinsinaLine_002.py