codeforces/556B_fake.py
def calculate(self):
        """ Main calcualtion function of the class """
        result = 0
        for i in range(self.n):
            prev = -1
            match = 1
            for n in self.list:
                if n == prev + 1:
                    pass
                else:
                    match = 0
                prev = n
            if match:
                result = 1
                break
            self.rotate()

        return "Yes" if result else "No"
 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(self.n):
            prev = -1
            match = 1
            for n in self.list:
                if n == prev + 1:
                    pass
                else:
                    match = 0
                prev = n
            if match:
                result = 1
                break
            self.rotate()
        return "Yes" if result else "No"
def calculate ( self ) : result = 0 for i in range ( self . n ) : prev = - 1 match = 1 for n in self . list : if n == prev + 1 : pass else : match = 0 prev = n if match : result = 1 break self . rotate ( ) return "Yes" if result else "No"
Main calcualtion function of the class
Main calcualtion function of the class
""" Main calcualtion function of the class """
self