Beispiel #1
0
 def output(self):
     from Parser import parseIntArrayArrays
     for o in parseIntArrayArrays(open(self.outputPath)):
         yield o[0]
Beispiel #2
0
 def output(self):
     from Parser import parseIntArrayArrays
     for o in parseIntArrayArrays(open(self.outputPath)):
         yield o[0]
Beispiel #3
0
 def input(self):
     from Parser import parseIntArrayArrays
     return parseIntArrayArrays(open(self.inputPath))
Beispiel #4
0
 def output(self):
     from Parser import parseIntArrayArrays
     from DataStructure.Interval import Interval
     for o in parseIntArrayArrays(open(self.outputPath)):
         yield [Interval(start, end) for start, end in o[0]]
Beispiel #5
0
 def input(self):
     from Parser import parseIntArrayArrays
     return parseIntArrayArrays(open(self.inputPath))
Beispiel #6
0
 def output(self):
     from Parser import parseIntArrayArrays
     from DataStructure.Interval import Interval
     for o in parseIntArrayArrays(open(self.outputPath)):
         intervals = [Interval(start, end) for start, end in o[0]]
         yield intervals