On Sunday, April 7, 2019 at 4:24:59 PM UTC+3, jayarjo wrote:
> I'm receiving RE with a minus icon next to it, which says "Test set skipped"
> when I hover a mouse over it.
>
> What does it mean? :/
This is my code that led to RE.
for t in range(int(input())):
# Saving inputs
n, l = input().split(' ')
products = [int(i) for i in input().split(' ')]
# Finding the 1st prime divisor j
p0 = products[0]
if not p0%2:
j = 2
else:
j = 3
while p0%j:
j += 2
flag = True
for p1 in products:
flag = not flag
if p1 != p0:
break
if flag:
j = p0//j
primes = [j]
for p in products:
j = p//j
primes += [j]
alpha = sorted(set(primes[::]))
ans = ''
for k in primes:
ans += 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[alpha.index(k)]
print("Case #{}: {}".format(t+1, ans))
I cant figure out why? It works on my IDLE.
--
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/af3cf4a2-e2ad-4903-af16-ebf4f9eb3de9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.