codeforces/609A_first.py
def calculate(self):
        """ Main calcualtion function of the class """

        result = 0
        sum = 0
        for i in range(self.n):
            sum += self.numss[i]
            result += 1
            if (sum >= self.m):
                break

        return str(result)
 Main calcualtion function of the class 
Main calcualtion function of the class
Main calcualtion function of the class
def calculate(self):
        result = 0
        sum = 0
        for i in range(self.n):
            sum += self.numss[i]
            result += 1
            if (sum >= self.m):
                break
        return str(result)
def calculate ( self ) : result = 0 sum = 0 for i in range ( self . n ) : sum += self . numss [ i ] result += 1 if ( sum >= self . m ) : break return str ( result )
Main calcualtion function of the class
Main calcualtion function of the class
""" Main calcualtion function of the class """
self