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

        result = 0
        for i in range(5):
            x = self.mx[i]
            m = self.numm[i]
            w = self.numw[i]
            result += max(0.3*x, (1 - m/250) * x - 50 * w)

        result += 100 * self.hs - 50 * self.hu

        return str(int(result))
 Main calcualtion function of the class 
Main calcualtion function of the class
Main calcualtion function of the class
def calculate(self):
        result = 0
        for i in range(5):
            x = self.mx[i]
            m = self.numm[i]
            w = self.numw[i]
            result += max(0.3*x, (1 - m/250) * x - 50 * w)
        result += 100 * self.hs - 50 * self.hu
        return str(int(result))
def calculate ( self ) : result = 0 for i in range ( 5 ) : x = self . mx [ i ] m = self . numm [ i ] w = self . numw [ i ] result += max ( 0.3 * x , ( 1 - m / 250 ) * x - 50 * w ) result += 100 * self . hs - 50 * self . hu return str ( int ( result ) )
Main calcualtion function of the class
Main calcualtion function of the class
""" Main calcualtion function of the class """
self