So I'm new to python and was doing this python prog for an online coding site.the problem is when i run my code in IDLE it compiles perfectly and gives the correct output but when i run it in the online compiler it gives me a 'Runtime Error -NZEC' and output
Traceback (most recent call last):
File "/tmp/editor_trsource_1407389496_406898.py", line 5, in
A=int(input())
File "", line 1
3 5 2
^
SyntaxError: invalid syntax
Its really annoying as i cannot see the problem. Any help is gratefully accepted
array1=[]
array2=[]
T=int(input())
for z in range(T):
A=int(input())
B=int(input())
N=int(input())
for i in range(0,10**7):
try:
array1.append(i+1 * int(A))
except MemoryError :
break
for j in range(0,10**7):
try:
array2.append(j+1 * int(A))
except MemoryError :
break
filter(None ,array1)
filter(None ,array2)
array3 = array1 + array2
array3 = sorted(set(array3))
print (array3[N])