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

        for i in range(self.gn):
            g = self.gsrt[i]
            it = self.a.lower_bound((g[1], 0))
            if not it.iter_end():
                alb = it.iter_getitem()
                if alb[0] > g[0]:
                    return "No"
                self.result[g[2]] = alb[1]+1
                it.iter_del()
            else:
                return "No"

        answer = "Yes\n" + " ".join(map(str, self.result))

        return answer
 Main calcualtion function of the class 
Main calcualtion function of the class
Main calcualtion function of the class
def calculate(self):
        for i in range(self.gn):
            g = self.gsrt[i]
            it = self.a.lower_bound((g[1], 0))
            if not it.iter_end():
                alb = it.iter_getitem()
                if alb[0] > g[0]:
                    return "No"
                self.result[g[2]] = alb[1]+1
                it.iter_del()
            else:
                return "No"
        answer = "Yes\n" + " ".join(map(str, self.result))
        return answer
def calculate ( self ) : for i in range ( self . gn ) : g = self . gsrt [ i ] it = self . a . lower_bound ( ( g [ 1 ] , 0 ) ) if not it . iter_end ( ) : alb = it . iter_getitem ( ) if alb [ 0 ] > g [ 0 ] : return "No" self . result [ g [ 2 ] ] = alb [ 1 ] + 1 it . iter_del ( ) else : return "No" answer = "Yes\n" + " " . join ( map ( str , self . result ) ) return answer
Main calcualtion function of the class
Main calcualtion function of the class
""" Main calcualtion function of the class """
self