Hi,
I'm new to doing Google Kickstart challenges and I tried doing the first on
the latest problem set (Book Reading). I did it in Python and the code
outputs the correct answer on my local machine, however it throws a RE when
I try to submit my answer.
Here is the code:
t = int(input())
for test in range(1, t + 1):
n, m, q = map(int, input().split())
p = [int(e) for e in input().split()]
r = [int(e) for e in input().split()]
result = 0
for reader in range(q):
result += sum([1 for page in range(1, n + 1) if page % r[reader] == 0 and
page not in p])
print("Case #{}: {}".format(test, result))
Thanks for your help.
--
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/de73bde3-6f72-4748-bd4a-9395b895db33%40googlegroups.com.