I have the code below that work fine on the test data but yield run time error 
any ideas??

def rep(N):
    s = list(str(N))
    ind1 = [ii for ii in range(len(s)) if s[ii] =='4' ]
    x1 =[]
    x2 =[]
    for ii in range(len(s)) :
        if ii in ind1:
            x1.append('2')
            x2.append('2')
        else:
            x1.append(s[ii])
            x2.append('0')
    A = int(''.join(x1))
    B = int(''.join(x2))
    return A,B
t = int(input())
for i in range(1, t + 1):
    N = [int(s) for s in input().split(" ")][0]
    A,B = rep(N)
    print("Case #{}: {} {}".format(i, A, B))

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/b5648709-3e63-41ca-9b89-969251898ce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to