MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / func

Function func

CodeChef_problems/FIBEASY/solution.py:16–21  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

14 x=y%10
15 y=z%10
16def func(n):
17 power=0
18 while(n>0):
19 n=n>>1
20 power+=1
21 return 2**(power-1)
22for tc in range(t): #fibonacci series last digits repeat after every 60 values hence we have used mod 60
23 n=int(input())
24

Callers 1

solution.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected