We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
#!/bin/python3importosimportsys# Complete the solve function below.defsolve(n):ifninq:return"IsFibo"else:return"IsNotFibo"q=[0]a=0b=1foriinrange(0,10000):c=a+ba=bb=cq.append(c)if__name__=='__main__':fptr=open(os.environ['OUTPUT_PATH'],'w')t=int(input())fort_itrinrange(t):n=int(input())result=solve(n)fptr.write(result+'\n')fptr.close()
Is Fibo
You are viewing a single comment's thread. Return to all comments →