My code written in python 3 run well inTest by I get a wrong answer error
"WA" when I submitted it.
*def pgdc(a, b): if b == 0 : return a return pgdc(b, a%b)*
*t = int(input()) for i in range(1, t + 1): c1 = [] c2 = []
n, m = [int(s) for s in input().split(" ")] c = [int(s1) for s1 in
input().split(" ")] for j in range(m-1): a = pgdc(c[j],
c[j+1]) c1.append(a) premier = c[0]//c1[0]
c1.insert(0,premier) dernier = c[m-1]//c1[m-1] c1.append(dernier)
c2 = list(set(c1)) c2.sort() mot = "" for s in c1:
index = c2.index(s) mot = mot + chr(index+ord('A'))
print("Case #{}: {}".format(i, mot))*
Please, show me how to fix this error. Thanks
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/google-code/CAK19nus-Y6Q08iuoX60f-xrJyyxEoP2goK%3D1%3DGOTjnZuSKBKjA%40mail.gmail.com.