bytelandian questions doubt

help
error
limit
please
time

#1

**can you please tell how can i reduce my time limit for this code (BYTELANDIAN COINS CODE)

def profit(a):
if a<12:
return a
else:
b1=int(a/2)
b2=int(a/3)
b3=int(a/4)
sum = (profit(b1)+profit(b2)+profit(b3))
return sum

for i in range(0,10):
n=int(input(“enter the value of n”))
print(“american dollars =”,profit(n))


#2

Better to share a link to your code: https://www.codechef.com/viewsolution/20356920

But to show code properly use the 101/010 button with the code highlighted when editing.