Problem:


Score : 200 points

Problem Statement

The development of algae in a pond is as follows.

Let the total weight of the algae at the beginning of the year i be x_i gram. For i≥2000, the following formula holds:

x_{i+1} = rx_i - D

You are given r, D and x_{2000}. Calculate x_{2001}, ..., x_{2010} and print them in order.

Constraints

2 ≤ r ≤ 5

1 ≤ D ≤ 100

D < x_{2000} ≤ 200

All values in input are integers.

Input

Input is given from Standard Input in the following format:

r D x_{2000}

Output

Print 10 lines. The i-th line (1 ≤ i ≤ 10) should contain x_{2000+i} as an integer.

Sample Input 1

2 10 20

Sample Output 1

30
50
90
170
330
650
1290
2570
5130
10250

For example, x_{2001} = rx_{2000} - D = 2 \times 20 - 10 = 30 and x_{2002} = rx_{2001} - D = 2 \times 30 - 10 = 50.

Sample Input 2

4 40 60

Sample Output 2

200
760
3000
11960
47800
191160
764600
3058360
12233400
48933560



Sample input:
2 10 20


Sample output:
30
50
90
170
330
650
1290
2570
5130
10250

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
for i in range(b):
    c = a*c-b
    print(c)

Submission status: Wrong Answer

Solution code:
r, d, x = map(int, input().split())

for i in range(11):
  x = r * x - d
  print(x)

Submission status: Wrong Answer

Solution code:
#ABC127 B

r,D,x = map(int,input().split())
A = []
for i in range(10):
    if i == 0:
        A.append(x)
    else:
        A.append(r*(A[i-1])-D)

for j in range(10):
    print(A[j])

Submission status: Wrong Answer

Solution code:
#ABC127 B

r,D,x = map(int,input().split())
A = []
for i in range(10):
    if i == 0:
        A.append(x)
    else:
        A.append(r*(A[i-1])-D)
print(A)

Submission status: Wrong Answer

Solution code:
r, D, x = list(map(lambda a: int(a), input().split(" ")))

ans = []
for i in range(10):
  x = r * x - D
  ans.append(x)

print("\n".join(str(ans)))

Submission status: Wrong Answer

Solution code:
r,d,x=map(int, input().split())
ans=x
for i in range(1,10):
    ans=r*ans-d
    print(ans)

Submission status: Wrong Answer

Solution code:
r,x,d = map(int, input().split())
for i in range(10):
  x = x* r - d
  print(x)

Submission status: Wrong Answer

Solution code:
r, d, x0 = map(int,input().split())

def mo(i):
    if i == 0:
        return x0
    return r*mo(i-1) - d 

for i in range(1,10):
    print(mo(i))

Submission status: Wrong Answer

Solution code:
r, d, x = map(int, input().split())
for i in range (1,11):
  x = (r*x)-d
print(x)

Submission status: Wrong Answer

Solution code:
r,d,x = map(int, input().split())

L = [x]
for i in range(1,11):
  L.append(L[i-1]*r - d)
  
for i in range(len(L)):
  print(L[i])

Submission status: Wrong Answer

Solution code:
r, D, x = map(int,input().split())
for i in range(0,D):
    x = r*x-D
    print(x)

Submission status: Wrong Answer

Solution code:
r,D,x_2000 = map(int,input().split())


X=[x_2000]
for i in range(10):
    X.append(r*X[i] - D)


print(*X,sep="\n")

Submission status: Wrong Answer

Solution code:
r,d,X=map(int,input().split())
x=[X]
for i in range(10):
    x.append(r*x[i]-d)
del x[0]
print(x)
for i in range(len(x)):
    print(x[i])

Submission status: Wrong Answer

Solution code:

r,d,x_2000=map(int,input().split())

def X(n):    
    if n == 1:return x_2000
    else:return r*X(n-1)-d
print([X(n) for n in range(2,12)])

Submission status: Wrong Answer

Solution code:
r,D,x = map(int,input().split())
X = [x]*11

for i in range(0,10):
  X[i+1] = r*X[i] - D
  
  
print(X[1:11])

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
for i in range(10):
    x=2*x-D
    print(x)

Submission status: Wrong Answer

Solution code:
r0, D, x = map(int, input().split())
r1 = r0 * x - D
r2 = r1 * x - D
r3 = r2 * x - D
r4 = r3 * x - D
r5 = r4 * x - D
r6 = r5 * x - D
r7 = r6 * x - D
r8 = r7 * x - D
r9 = r8 * x - D
r10 = r9 * x - D
print(r1)
print(r2)
print(r3)
print(r4)
print(r5)
print(r6)
print(r7)
print(r8)
print(r9)
print(r10)

Submission status: Wrong Answer

Solution code:
r, D, X_1 = input().split()
r = int(r)
D = int(D)
x = int(X_1)
for i in range(10):
  print(str(x))
  x = r * x - D

Submission status: Wrong Answer

Solution code:
r,d,x = map(int,input().split())
 
for i in range(10):
  x = r*x - d
  print(r)

Submission status: Wrong Answer

Solution code:
r,d,x = map(int,raw_input().split())
print r,d,x
xi = x
nxi = 0
for i in range(10):
    nxi = xi*r -d
    print nxi
    xi = nxi

Submission status: Wrong Answer

Solution code:
r, d , x = map(int, input().split())
cnt = 0
print(x)
while cnt <= 8:
    x = r * x - d
    print(r * x - d)
    cnt += 1

Submission status: Wrong Answer

Solution code:
r, d , x = map(int, input().split())
cnt = 0
print(x)
while cnt <= 10:
    x = r * x - d
    print(r * x - d)
    cnt += 1

Submission status: Wrong Answer

Solution code:
import numpy as np
import math

# input

r, D, x = [int(_) for _ in input().split()]

xans = np.ones(10)

def Linear_Recursive(x, r, D, N):
    
    if N==0:
        xans = x
        return xans
    
        
    
    xans = r*Linear_Recursive(x, r, D, N-1) - D # linear eq.
    
    return xans
  
for i in range(10):
    xans[i] = round(Linear_Recursive(x, r, D, i+1))
    
    print(xans[i])

Submission status: Wrong Answer

Solution code:
import numpy as np
import math

# input

r, D, x = [int(_) for _ in input().split()]

xans = np.ones(10)

def Linear_Recursive(x, r, D, N):
    
    if N==0:
        xans = x
        return xans
    
        
    
    xans = r*Linear_Recursive(x, r, D, N-1) - D # linear eq.
    
    return xans
  
for i in range(10):
    xans[i] = int(Linear_Recursive(x, r, D, i+1))
    
    print(xans[i])

Submission status: Wrong Answer

Solution code:
import numpy as np
import math

# input

r, D, x = [int(_) for _ in input().split()]

xans = np.ones(10)

def Linear_Recursive(x, r, D, N):
    
    if N==0:
        xans = x
        return xans
    
        
    
    xans = r*Linear_Recursive(x, r, D, N-1) - D # linear eq.
    
    return xans
  
for i in range(10):
    xans[i] = Linear_Recursive(x, r, D, i+1)
    
    print(xans[i])

Submission status: Wrong Answer

Solution code:
def mos(r,d,x,i):
  if i==0:
    return(x)
  else:
    return(mos(r,d,x,i-1)*r-d)
  
r,d,x=map(int,input().split())
for i in range(1,11):
  print(r,d,x,i)

Submission status: Wrong Answer

Solution code:
def mos(r,d,x,i):
  if i==0:
    return(x)
  else:
    return(mos(r,d,x,i-1)*r-d)
  
r,d,x=map(int,input().split())
for i in range(10):
  print(r,d,x,i)

Submission status: Wrong Answer

Solution code:
r,d,x0 = map(int,input().split())
a=[x0]

for i in range(1,11):
    a.append(r*a[i-1]-d)

for i in range(11):
    print(a[i])

Submission status: Wrong Answer

Solution code:
r, d, x = map(int,input().split())

result = r*x-d
for i in range(9):
  result = r*result-d
  print(result)

Submission status: Wrong Answer

Solution code:
r,d,x = map(int, input().split())
z=0
for i in range(11):
   x=x*r-d
   print(x)

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())
for _ in range(10):
	x=x*2-10
	print(x)

Submission status: Wrong Answer

Solution code:
r,x,d = map(int,input().split())
for i in range(10):
  x = r*x-d
  print(x)

Submission status: Wrong Answer

Solution code:
n,d,x=map(int,input().split())
for i in range(10):
    x= n*x-d
print(x)

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())

for i in range(10) :
  x = r*x + D
  print(x)

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
x0=c
x1=a*c-b
x2=2*(x1-x0)+x1
x3=2*(x2-x1)+x2
x4=2*(x3-x2)+x3
x5=2*(x4-x3)+x4
x6=2*(x5-x4)+x5
x7=2*(x6-x5)+x6
x8=2*(x7-x6)+x7
x9=2*(x8-x7)+x8
x10=2*(x9-x8)+x9

print(x1)
print(x2)
print(x3)
print(x4)
print(x5)
print(x6)
print(x7)
print(x8)
print(x9)
print(x10)

Submission status: Wrong Answer

Solution code:
r,d,x = map(int, input().split())

count = 0
while count < 11:
  x = r*x-d
  print(x)
  count += 1

Submission status: Wrong Answer

Solution code:
def main():
    i = list(map(int, input().split()))

    if i[0] < 2 or 5 < i[0]:
        return
    if i[1] < 1 or 100 < i[1]:
        return
    if i[2] <= i[1] or i[1] > 200:
        return

    for j in range(10):
        a = i[0] * i[1] - i[2]
        print(a)
        i[2] = a 

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
def main():
    i = list(map(int, input().split()))

    if i[0] < 2 or 5 < i[0]:
        return
    if i[1] < 1 or 100 < i[1]:
        return
    if i[2] <= i[1] or i[1] > 200:
        return

    for j in range(10):
        a = i[0] * i[1] - i[2]
        print(a)
        i[2] = a

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
for i in range(10):
  r = r * x - D
  print(r)

Submission status: Wrong Answer

Solution code:
r,d,x = map(int,input().split())
for i in range(10):
    x = r*x-d
print(x)

Submission status: Wrong Answer

Solution code:
r, D, x = 2 ,10 ,20
num = 0
while num < 10:
  x = r * x - D
  print(x)
  num += 1

Submission status: Wrong Answer

Solution code:
r, D, x = map(int,input().split())
dp = [0]*11
dp[0]=x
for i in range(10):
  dp[i+1] = r*dp[i] - D
  
print(dp[-1])

Submission status: Wrong Answer

Solution code:
r,D,x=map(int,input().split())
for _ in range(10):
  x=r*x-10
  print(x)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

def main():
    r, D, x = [int(x) for x in input().split()]
    next_year = x
    for _ in range(10):
        next_year = r * next_year - D


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
r, d, x = map(int, input().split())
for i in range(10):
  r = r*x-d
  print(r)

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())
for i in range(10):
  r=r*x-d
  print(r)

Submission status: Wrong Answer

Solution code:
r, d, x = map(int, input().split())

for i in range(x):
  x = r * x - d
  if i >= 10:
    break  
  print(x)

Submission status: Wrong Answer

Solution code:
r,D,x = map(int,input().split())
ans = x
for i in range(1,D+1):
  ans = ans*r - D
  print(ans)

Submission status: Wrong Answer

Solution code:
r,d,x = map(int, input().split())
result=[]
result.append(x)
for i in range(10):
	x=r*x-d
	result.append(x)
for i in result:
	print(i)

Submission status: Wrong Answer

Solution code:
r,d,x=list(map(int,input().split()))
for i in range(9):
  x=r*x-d
  print(x)

Submission status: Wrong Answer

Solution code:
r,D,x = map(int,input().split())
i = 0
while i <= 10:
    x = r * x - D
    print(x)
    i += 1

Submission status: Wrong Answer

Solution code:
30
50
90
170
330
650
1290
2570
5130
10250

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())
def algae(n):
    if n==1:
        return x
    else:
        return r*algae(n-1)-d
for i in range(2,12):
    algae(i)

Submission status: Wrong Answer

Solution code:
r, d, x = map(int, input().split())
for _ in range(10):
  x = r * x -d
print(x)

Submission status: Wrong Answer

Solution code:
# ABC 127, B - algae
tmp = [int(el) for el in input().split(' ')]
r = tmp[0]
d = tmp[1]
X = [0 for i in range(11)]
X[0] = tmp[2]

print(r, d, X[0])

for i in range(1, 11):
    X[i] = r*X[i-1] - d
    print(X[i])

Submission status: Wrong Answer

Solution code:
r,D,x = map(int,input().split())
for i in range(9):
  x = r * x -D
  print(x)

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())

for i in range(11):
  x= x*r-d
  print(x)

Submission status: Wrong Answer

Solution code:
r, d,x = map(int,input().split())
x_i = 0
for i in range(10):
  x_i = x*r-d
  print(x_i)

Submission status: Wrong Answer

Solution code:
r,d,x = map(int,input().split())
for _ in range(11):
  print(x)
  x = x*r-d

Submission status: Wrong Answer

Solution code:
r,d,x = map(int,input().split())
for _ in range(10):
  print(x)
  x = x*r-d

Submission status: Wrong Answer

Solution code:
r,d,x = map(int,input().split())
for i in range(0,10):
  x = r+x-d
  print(x)

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())
for i in range(1,10):
    x=r*x-d
    print(x)

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
def fib(n):
  if n == 0:
    return c
  else:
    return 2 * fib(n-1) -10
  
for i in range(10):
  print(fib(i+1))

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
def fib(n):
  if n == 0:
    return c
  else:
    return 2 * fib(n-1) -10
  
print(fib(9))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

#西暦i年の藻類x_iグラム
#x_i+1=r*x_i-D

r, D, x = map(int, input().split())

res = []
res.append(x)

for i in range(1,11):
    res.append(r * res[i-1] - D)

for p in res:
    print(p)

Submission status: Wrong Answer

Solution code:
r,d,x = map(int,input().split())
x_list = []
x_list.append(x)
for i in range(10):
    x_2 = r*x_list[i] -d
    x_list.append(x_2)

for i in range(10):
    print(x_list[i])

Submission status: Wrong Answer

Solution code:
def func(r, x, d):
    return r * x - d

def main():
    r, d, x0 = map(int, input().split())

    lst = list()
    lst.append(x0)
    for i in range(0, 10):
        lst.append(func(r, lst[i], d))
    
    for i in range(1, 10):
        print(lst[i])
    
main()

Submission status: Wrong Answer

Solution code:
r, d, x = list(map(int, input().split()))

for i in range(10):
  x = r * x - d

print(x)

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())
for i in range(1,10):
  x=r*x-d
  print(x)

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())
for x in range(1,10):
  x=r*x-d
  print(x)

Submission status: Wrong Answer

Solution code:
r,d,x0 = map(int,input().split())

xlist = []

xlist.append(r*x0-d)

for i in range(9):
    xlist.append(r*xlist[i]-d)
    print(xlist[i])

Submission status: Wrong Answer

Solution code:
r,D,x = [int(i) for i in input().split()]

print(r)


def calu(r,D,x):
    X =x
    for j in range(10):
       X = r*X-D
       print(X)

calu(r,D,x)

Submission status: Wrong Answer

Solution code:
r , D, x = map(int, input().split())
for i in range(10):
  print(int(r*x-D))

Submission status: Wrong Answer

Solution code:
li = list(map(int,input().split()))
r = li[0]
D = li[1]
x2000 = li[2]
def a(x):
  return r * x - D

x2000 = a(x2000)
print(x2000)

Submission status: Wrong Answer

Solution code:
r,D,x=map(int, input().split())

a = [0]*11
a[0] = x

for i in range(1,11):
  a[i] = r*a[i-1]-D

for i in a[0:11]:
    print(i)

Submission status: Wrong Answer

Solution code:
r,D,x_2000 = map(int,input().split())
for i in range(1,11):
  print((r ** i) * (x_2000 + D/(1-r)) - D/(1-r))

Submission status: Wrong Answer

Solution code:

import numpy as np

r,D,x_2000 = map(int,input().split())

def f(i):
    global x_2000
    global D
    global r
    if i == 2000:
        print (x_2000)
        return x_2000
    temp = f(i-1)*r - D
    print (temp)
    return temp
  
    

f(2010)

Submission status: Wrong Answer

Solution code:
r,D,x_2000=map(int,input().split())
List=[x_2000]
for i in range(15):
  y=List[i]*r-D
  List.append(y)
  
for j in range(1,10):
  print(List[j])

Submission status: Wrong Answer

Solution code:
r,D,x_2000=map(int,input().split())
List=[x_2000]
for i in range(10):
  List.append(List[i]*r-D)
  
for j in range(1,10):
  print(List[j])

Submission status: Wrong Answer

Solution code:
r,D,x = map(int,input().split())
for i in range(1,11):
  print(int(D//(r-1)+(x-D//(r-1))*r**i))

Submission status: Wrong Answer

Solution code:
r,D,x = map(int,input().split())
for i in range(1,11):
  print(D//(r-1)+(x-D//(r-1))*r**i)

Submission status: Wrong Answer

Solution code:
r,D,x = map(int,input().split())
for i in range(1,11):
  print(D//(r-1)+(x-D//(r-1))*r**(i-2000))

Submission status: Wrong Answer

Solution code:
r,D,x=map(int,input().split())
for i in range(10):
    x=r*x-D
print(x)

Submission status: Wrong Answer

Solution code:
r,d,x=input().split()
m = int(x)
for i in range(1, 10):
    m = int(r) * int(m) - int(d)
    print(int(m))

Submission status: Wrong Answer

Solution code:
r,D,X = map(int, input().split())
ope_num = 10

while ope_num > 10:
  X = r*X -D
  print(X)
  
  ope_num -= 1

Submission status: Wrong Answer

Solution code:

r,D,x2000 = list(map(int, input().split()))

for i in  range(10):
    new =  r *x2000 - D
    print(new)
    x = new

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
final = []
for num in range(10):
    x = r * x - D
    final.append(x)
print(final)

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
ans = r * x - D
final = []
for num in range(10):
    x = r * x - D
    final.append(x)
print(final)

Submission status: Wrong Answer

Solution code:
INPUT = input().split()
r = int(INPUT[0])
D = int(INPUT[1])
X = int(INPUT[2])

XX = []

ans = ""
XX.append(X)

i = 0
while i <= 10:
    v = r * XX[i] - D
    XX.append(v)
    ans = ans + str(XX[i + 1]) + '\n'
    i += 1

print(ans)

Submission status: Wrong Answer

Solution code:
INPUT = input().split()
r = int(INPUT[0])
D = int(INPUT[1])
X = int(INPUT[2])

XX = []

ans = ""
XX.append(X)

i = 0
while i < 10:
    v = r * XX[i] - D
    XX.append(v)
    ans = ans + str(XX[i]) + '\n'
    i += 1

print(ans)

Submission status: Wrong Answer

Solution code:
INPUT = input().split()
r = int(INPUT[0])
D = int(INPUT[1])
X = int(INPUT[2])

XX = []

XX.append(X)

i = 0
while i < 10:
    v = r * XX[i] - D
    XX.append(v)
    print(XX[i])
    i += 1

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

r, d, x = map(int, input().split())

array = [x]

for i in range(1, 11):
    array.append(r*array[i-1]-d)


print(array[1:])

Submission status: Wrong Answer

Solution code:
r, D, x2000 = map(int, input().split())
for i in range(10):
  x2000 = r*x2000+D
  print(x2000)

Submission status: Wrong Answer

Solution code:
r,d,x = map(int,input().split())

def ike(n,r,d,x):
    if n == 0:
        return x
    return r*ike(n-1,r,d,x)-d

if __name__ == "__main__":
    for i in range(10):
        print(ike(i,r,d,x))

Submission status: Wrong Answer

Solution code:
x, r, D = map(int, input().split())
for _ in range(1, 11):
  x = r*x - D
  print(x)

Submission status: Wrong Answer

Solution code:
def algae(r,d,x):
    for i in range(10):
        x = r*x-10
        print(x)    
r,d,x = map(int, input().split())
algae(r,d,x)

Submission status: Wrong Answer

Solution code:
r, d, x = map(int, input().split())
xs = [x]
for i in range(10):
    xs.append(xs[-1] * r - d)
print("\n".join(map(str, xs)))

Submission status: Wrong Answer

Solution code:
r,d,x = map(int,input().split())
print(x)
for k in range(9):
  x = r*x -d
  print(x)

Submission status: Wrong Answer

Solution code:
r, D, x_2000= map(int, input().split(' '))
xs = [x_2000]
for x in range(10):
	xs.append(r*xs[len(xs)-1]-D)
print('\n'.join(map(str, xs)))

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())
for i in range(10):
	x=x*r-d
print(x)

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())
for i in range(10):
  print(x)
  x=x*r-d

Submission status: Wrong Answer

Solution code:
a, b, c = list(map(int, input().split()))

for i in range(1,11):
    c *= a
    e = c - b
    print(e)

Submission status: Wrong Answer

Solution code:
import sys

a, b, c = map(int, input().split())
x = a*c -b

for i in range(1,10):	
	print(x)
	x = a*x-b

Submission status: Wrong Answer

Solution code:
r,D,x = [int(i) for i in input().split()]
n=2000
while n <=2010: 
  print(x) 
  X=r*x-D
  x=X
  n=n+1

Submission status: Wrong Answer

Solution code:
def spaceinput():
    return list(map(int,input().split(" ")))

r,D,xx=spaceinput()

for i in range(11):
    print(xx)
    xx=xx*r-D

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())

for i in range(10):
    i = r * x - D
    x = i

print(x)

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
ans = x

for ans in range(10):
    ans = r * x - D
    x = ans

print(x)

Submission status: Wrong Answer

Solution code:
from sys import stdin
import numpy as np

def main(args):
    r = args[0]
    d = args[1]
    x = args[2]
    ar = np.zeros([10])

    ar[0] = r*x-d
    for i in range(1,len(ar)):
        ar[i] = r*ar[i-1]-d

    for i in ar:
        print(i)

if __name__ == "__main__":
    main([int(x) for x in stdin.readline().rstrip().split()])

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
ans = x

for ans in range(10):
    ans = r * x - D
    x = ans

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
ans = x

for ans in range(10):
    ans = r * x - D

print(ans)

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())

for i in range(10):
    i = r * x - D

print(i)

Submission status: Wrong Answer

Solution code:
import sys
a, b, c = map(int, raw_input().split())
i=0
while 1:
  c = a*c - b
  print c
  i = i + 1
  if i > 10 :
      sys.exit()

Submission status: Wrong Answer

Solution code:
r,d,x = map(int, input().split())
for i in range(10):
  x =r*x-d
print(x)

Submission status: Wrong Answer

Solution code:
x={}
i=list(map(int,input().split()))
for s in range(10):
  x[s]=(i[2]-int((i[1]/(i[0]-1))))*i[0]**(s+1)+int((i[1]/(i[0]-1)))
  print(x[s])

Submission status: Wrong Answer

Solution code:
r,D,x=list((map(int,input().split())))
for _ in range(20):
    x=x*r-D
    print(x)

Submission status: Wrong Answer

Solution code:
r,D,x=map(int,input().split())
for i in range(2001,2011,1):
    print(x)
    x_=r*x-D
    x=x_

Submission status: Wrong Answer

Solution code:
a,b, c = map(int, input().split())
now = 0
for num in range(10):
    now = a*c -b
    print(now)

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
for i in range(10):
  s1=(a*c) -b
  print(s1)
  a=s1

Submission status: Wrong Answer

Solution code:
r, d, x = map(int, input().split())
ans = [0] * 13
ans[0] = x

for i in range(0, 11):
    ans[i+1] = (r * ans[i]) - d
    print(ans[i])

Submission status: Wrong Answer

Solution code:
a,b,c=(int(i) for i in input().split())
for i in(1,10):
  c=a*c-b
  print(c)

Submission status: Wrong Answer

Solution code:
r,d,x=map(int,input().split())
for i in range(11):
    print(str(x))
    x = x * r - d

Submission status: Wrong Answer

Solution code:
a,b,c=(int(i) for i in input().split())
for i in range(1,10):
  c=a*c-b
  print(c)

Submission status: Wrong Answer

Solution code:
r,D,x=[int(i) for i in input().split()]
a = x
if 1<= D <= 10:
    for i in range(D):
        a = (r*a) - D
        print(a)
else:
    for i in range(10):
        a = (r*a) - D
        print(a)

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
ans = []
X = x
for i in range(D):
    ans.append(X + D)
    X = ans[i]
else:
    ans.reverse()
    for i in range(D):
        print(ans[i])

Submission status: Wrong Answer

Solution code:
A = list(map(int, input().split())) 
r = A[0]
D = A[1]
f = A[2]


count = 0
ans = 0
 
for i in range(10):
    ans = (r*f) - D 
    count = count + 1
    print(ans)
    if(count == 10):
        break

Submission status: Wrong Answer

Solution code:
r,d,x2000 = [int(i) for i in input().split()]

print(x2000)

xi = x2000

for i in range(10):
    xi = r*xi - d
    print(xi)

Submission status: Wrong Answer

Solution code:
a,b,c=(int(i) for i in input().split())
for i in range(0,9):
  c=a*c-b
  print(c)

Submission status: Wrong Answer

Solution code:
r,D,x_2000=map(int, input().split())

def calc(x):
    if x==2000:
        ans=x_2000
    else:
        ans=r*calc(x-1)-D
    return ans

for i in range(2000,2011):
  ans2=calc(i)
  print(ans2)

Submission status: Wrong Answer

Solution code:
from sys import stdin
r,D,x=[int(x) for x in stdin.readline().rstrip().split()]
ans=[x]+[0]*(D)
for i in range(1,D+1):
    ans[i] = r * ans[i-1] - D
for j in ans[1:11]:
    print(j)

Submission status: Wrong Answer

Solution code:
x=input()
xx=x.split()
r=int(xx[0])
x2=int(xx[1])
D=int(xx[2])
y=[0]*10
for i in range(10):
  y[i]+=r*x2-D
  print(y[i])
  x2=y[i]

Submission status: Wrong Answer

Solution code:
r, d, x_2000 = map(int, input().split(' '))
a = [x_2000] + [0] * 10
for i in range(1, 11):
  a[i] = r * a[i - 1] - d

for x in a:
  print(x)

Submission status: Wrong Answer

Solution code:
x=input()
xx=x.split()
r=int(xx[0])
x=int(xx[1])
D=int(xx[2])
y=[0]*10
for i in range(10):
  y[i]+=r*x-D
  print(y[i])
  x=y[i]

Submission status: Wrong Answer

Solution code:
r,D,x=[int(i) for i in input().split()]
a = x
if D > 10:
    for i in range(10):
        a = (r*a) - D
        print(a)
else:
    for i in range(D):
        a = (r*a) - D
        print(a)

Submission status: Wrong Answer

Solution code:
r, d, x_2000 = map(int, input().split(' '))
a = [x_2000] + [0] * 10
for i in range(1, 11):
  a[i] = r * a[i - 1] - d

[print(x) for x in a]

Submission status: Wrong Answer

Solution code:
r,D,x_2000=map(int,input().split())

def Algae(r,D,x):
  weight=[]
  for _ in range(10):
    x=r*x-D
    weight.append(x)
  return weight

print("{}".format(Algae(r,D,x_2000)))

Submission status: Wrong Answer

Solution code:
r, d, x2000 = map(int, input().split())

x = []

for i in range(10+1):
    x.append(0)

print(x)

x[0] = x2000
# print(x[0])

for i in range(10):
    x[i+1] = r * x[i] - d
    print(x[i+1])

Submission status: Wrong Answer

Solution code:
r, D, x2000 = map(int, input().split())
x = [x2000]
for i in range(11):
        x.append(r*x[i]-D)
        print(x[i])

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
def mo(r, D, x, i):
  out = rx - D
  print(int(out))
  if i<9:
  	return mo(r, D, out, i+1)
  else:
    return 0
  
  mo(r, D, x, 0)

Submission status: Wrong Answer

Solution code:
r,D,x=[int(i) for i in input().split()]
a = x
for i in range(D):
    a = (r*a) - D
    print(a)

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
x_list = [x]

def f(x):
    x_list.append(r * x_list[i-1] - D)
    return 

for i in range(1,11):
    f(i)

for i in x_list:
    print(i)

Submission status: Wrong Answer

Solution code:
r, D, x = map(int, input().split())
ansLst = [0] * 10
print(ansLst)
ansLst[0] = int((r * x) - D)
for i in range(1, 10):
    ansLst[i] = int((ansLst[i - 1] * r) - D)
for i in ansLst:
    print(i)

Submission status: Wrong Answer

Solution code:
ints = input().split(' ')
r, D, x_0 = int(ints[0]), int(ints[1]), int(ints[2])

def calc(i):
	if i==2000:
		return r*x_0-D
	else:
		return r*calc(i-1)-D
for i in range(2001, 2010):
	print(calc(i))

Submission status: Wrong Answer

Solution code:
r, d, x = map(int, input().split())
for i in range(10):
    x = r*x+d
    print(x)

Submission status: Wrong Answer

Solution code:
r,D,x2000=[int(x) for x in input().split()]
x=[x2000]
for i in range(10):
    x.append(x[i]*r-D)
for xi in x:
    print(xi)

Submission status: Wrong Answer

Solution code:
r,d,x_ini=map(int,input().split())
x=x_ini
for i in range(9):
    x=x*r-d
    print(x*r-d)

Submission status: Wrong Answer

Solution code:
r,D,x=map(int,input().split())
for i in range(10):
  print(x)
  x=r*x-D
print(x)

Submission status: Wrong Answer

Solution code:
r, d, start = map(int,input().split())
X = [start]
for i in range(10):
    X.append(r*X[-1]-d)
print(*X,sep="\n")

Submission status: Accepted

Solution code:
r,d,x2000 = map(int,input().split())

a = x2000

for x in range(10):
  a = r * a - d
  print(a)

Submission status: Accepted

Solution code:
r,d,x=map(int,input().split())
tmp=x
for i in range(10):
    print(r*tmp-d)
    tmp=r*tmp-d

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
#print(a*c-b)
for i in range(10):
    c = a*c-b
    print(c)

Submission status: Accepted

Solution code:
r,D,xs = map(int,input().split())
for i in range(1,11):
    xs = r*xs - D
    print(xs)

Submission status: Accepted

Solution code:
r,D,x = map(int,input().split())
for i in range(10):
    x = r*x - D
    print(x)

Submission status: Accepted

Solution code:
r, D, x = map(int, input().split())
for i in range(10):
    x = r*x - D
    print(x)

Submission status: Accepted

Solution code:
r, D, x = map(int, input().split())

for i in range(10):
  x = r*x - D
  print(x)

Submission status: Accepted

Solution code:
r, d, x = map(int, input().split())
for i in range(10):
    x = r * x - d
    print(x)

Submission status: Accepted

Solution code:
r,d,x = map(int,input().split())
for i in range(10):
    x = r * x - d
    print(x)

Submission status: Accepted

Solution code:
r,d,x = map(int,input().split())
for i in range(10):
  ans = r*x - d
  print(ans)
  x = ans

Submission status: Accepted

Solution code:
r,d,x = map(int,input().split())
for i in range(10):
  x = r*x-d
  print(x)

Submission status: Accepted

Solution code:
r,d,x = map(int,input().split())

weight = x

for i in range(10):
    weight = r*weight-d
    print(weight)

Submission status: Accepted

Solution code:
r, d, x = map(int, input().split())
print(r*x-d)
for _ in range(9):
    x = r*x-d
    print(r*x-d)

Submission status: Accepted

Solution code:
r,d,x = map(int,input().split())
for i in range(10):
    x = r* x - d
    print(x)

Submission status: Accepted

Solution code:
r, d, x = map(int, input().split())
for i in range(10):
  x = r * x - d
  print(x)

Submission status: Accepted

Solution code:
r, d, x = map(int, input().split())

for i in range(10):
  x = r * x - d
  print(x)

Submission status: Accepted

Solution code:
r, d, x = map(int,input().split())
for i in range(10):
  x = r*x - d
  print(x)

Submission status: Accepted

Solution code:
r,d,x=map(int,input().split())
for i in range(10):
  x=r*x-d
  print(x)

Submission status: Accepted

Solution code:
r, D, x = map(int, input().split())

for i in range(10):
  if i == 0:
    weight = r*x - D
    print(weight)
  else:
    weight = r*weight - D
    print(weight)

Submission status: Accepted

Solution code:
r, d, x = map(int, input().split())
for i in range(10):
    ans = r * x - d
    print(ans)
    x = ans

Submission status: Accepted

Solution code:
r,D,X2000 = map(int,input().split())
for i in range(10):
  X2000=r*X2000-D
  print(X2000)

Submission status: Accepted

Solution code:
r,d,x=map(int, input().split())
for i in range(10):
  x=r*x-d
  print(x)

Submission status: Accepted

Solution code:
r, D, x2000 = map(int, input().split())

for i in range(10):
  x = r * x2000 - D
  print(x)
  x2000 = x

Submission status: Accepted

Solution code:
# unihernandez22
# https://atcoder.jp/contests/abc127/tasks/abc127_b
# implementation

r, d, x = map(int, input().split())

for _ in range(10):
    x = r*x-d
    print(x)

Submission status: Accepted

Solution code:
r,D,x = map (int, input ().split ())
for i in range (10):
  x = r*x-D
  print (x)

Submission status: Accepted

Solution code:
r, d, x = (int(i) for i in input().split())
ans = x
for i in range(0, 10):
    ans = r * ans - d
    print(ans)

Submission status: Accepted

Solution code:
#ABC127 B

r,D,x = map(int,input().split())
A = []
for i in range(11):
    if i == 0:
        A.append(x)
    else:
        A.append(r*(A[i-1])-D)

for j in range(10):
    print(A[j+1])

Submission status: Accepted

Solution code:
r, D, x = map(int, input().split())


for i in range(10):
  x = r*x-D
  print(x)

Submission status: Accepted

Solution code:
r,d,x= map(int,input().split())

for _ in range(10):
    print(r*x-d)
    x = r*x-d

Submission status: Accepted

Solution code:
r, D, x = map(int, input().split())

for i in range(10):
  x = r*x-D
  print(x)