i am getting time limit exceed in my program and i am not getting whats the problem the question is Please Like me

```
itr = int(raw_input())
arr = []
for i in xrange(0,itr):
inp = raw_input()
a , b , c , d = [int(d) for d in inp.split()]
for j in xrange(1 , b):
c= c + (c*d)
if c>=a:
e = "ALIVE AND KICKING"
else:
e = "DEAD AND ROTTING"
arr.append(e)
for i in xrange(0 ,itr):
print arr[i]
```