@@ -0,0 +1,749 @@
+# Google Code Jam%0A# Code Jam Africa and Arabia 2011%0A# Qualification Round%0A# Problem A. Closing the Loop%0A%0Aclass TestCase:%0A    def __init__(self):%0A        self.ropes = %5B%5D%0A        %0AtestCaseFile = open(%22ClosingTheLoop_A-small-practice.in%22, %22r%22)%0Alines = testCaseFile.read().split('%5Cn')%0An = int(lines%5B0%5D)%0AtestCases = %5B0 for x in range(n)%5D%0A%0Adef initialize_test_cases(lines):%0A    global testCases%0A    count = -1%0A    for index, item in enumerate(lines):%0A        if (index %3E 0):%0A            if (index %25 2 %3E 0 and count %3C n - 1):%0A                count += 1%0A                testCases%5Bcount%5D = TestCase()%0A                #testCases%5Bcount%5D.rope = list(item)%0A            else: %0A                testCases%5Bcount%5D.rope = item.split(' ')%0A%0Ainitialize_test_cases(lines)%0A

Create ClosingTheLoop.py