Hello!!!
I wrote a program in python and it worked fine in my computer, so when I always submit it in SPOJ server it always returns "wrong answer" warning. Because the script worked fine in my computer I think it is a problem involving an input/output issue. So I wonder what is the way in that the SPOJ server takes the input?
Here I paste the code
#!/usr/bin/python
num = [1, 2, 88, 42, 99]
def function(num):
for i in range(len(num)):
if num[i] == 42:
break
print num[i]
function(num)
Thank you all a lot...
created
last reply
- 2
replies
- 468
views
- 2
users