@@ -0,0 +1,384 @@
+class Solution(object):%0A    def findMaxConsecutiveOnes(self, nums):%0A        %22%22%22%0A        :type nums: List%5Bint%5D%0A        :rtype: int%0A        %22%22%22%0A        m = 0%0A        k = 0%0A        for i in nums:%0A            if i == 1:%0A                k += 1%0A            else:%0A                if k %3E m:%0A                    m = k%0A                k = 0%0A        if k %3E m:%0A            m = k%0A        return m%0A

Solve task #485