Problem:


チケットの売り上げ

今日は、アイヅ・エンターテインメント社イチオシのアイドルグループ「アカベコ＆コボウシ」のチケット発売日です。チケットには以下の４種類があります。

Ｓ席 6000円

Ａ席 4000円

Ｂ席 3000円

Ｃ席 2000円

販売責任者のあなたは、ドキドキしながら発売開始を待っています。いよいよ発売開始。売れ行き絶好調です！

発売開始からしばらく経ったところで、それまでの注文をまとめた表を受け取りました。表の各行には、それまでに売れたチケットの種類と枚数が書いてあります。ただし、チケットの種類がＳ，Ａ，Ｂ，Ｃの順に現れるとは限りません。この表の行ごとの売上金額を求めるプログラムを作成してください。

入力

入力データは以下の形式で与えられる。

t1 n1
t2 n2
t3 n3
t4 n4

入力は4行からなる。i行目には、チケットの種類を表す整数 ti (1 ≤ ti ≤ 4)と枚数を表す整数 ni (0 ≤ ni ≤ 10000)が与えられる。チケットの種類を表す整数1, 2, 3, 4は、それぞれＳ席、Ａ席、Ｂ席、Ｃ席を表す。t1, t2, t3, t4 の値として1から4までの数は必ず１度だけ現れるが、1, 2, 3, 4の順で与えられるとは限らない。

出力

行ごとに売上金額を出力する。

入力例 1

3 10
1 4
4 1
2 5

出力例 1

30000
24000
2000
20000

入力例 2

1 1
2 0
3 1
4 1

出力例 2

6000
0
3000
2000



Sample input:
3 10
1 4
4 1
2 5


Sample output:
30000
24000
2000
20000

Submission status: Accepted

Solution code:
for i in range(4):
    t,n = map(int, input().split())
    if t==1:
        print(6000*n)
    if t==2:
        print(4000*n)
    if t==3:
        print(3000*n)
    if t==4:
        print(2000*n)
    else:
        pass

Submission status: Accepted

Solution code:
for i in range(4):
    t,n = map(int,input().split())
    if t == 1:
        print(6000*n)
    elif t == 2:
        print(4000*n)
    elif t == 3:
        print(3000*n)
    else:
        print(2000*n)

Submission status: Accepted

Solution code:
t1,n1 = map(int,input().split())
t2,n2 = map(int,input().split())
t3,n3 = map(int,input().split())
t4,n4 = map(int,input().split())

if t1==1:
    print(n1*6000)
    if t2==2:
        print(n2*4000)
        if t3==3:
            print(n3*3000)
            print(n4*2000)
        if t3==4:
            print(n3*2000)
            print(n4*3000)
        
    if t2==3:
        print(n2*3000)
        if t3==2:
                print(n3*4000)
                print(n4*2000)
        if t3==4:
            print(n3*2000)
            print(n4*4000)
    if t2==4:
        print(n2*2000)
        if t3==2:
                print(n3*4000)
                print(n4*3000)
        if t3==3:
                print(n3*3000)
                print(n4*4000)
                
if t1==2:
    print(n1*4000)
    if t2==1:
        print(n2*6000)
        if t3==3:
                print(n3*3000)
                print(n4*2000)
        if t3==4:
                print(n3*2000)
                print(n4*3000)        
    if t2==3:
        print(n2*3000)
        if t3==1:
                print(n3*6000)
                print(n4*2000)
        if t3==4:
                print(n3*2000)
                print(n4*6000)                
    if t2==4:
        print(n2*2000)
        if t3==1:
                print(n3*6000)
                print(n4*3000)
        if t3==3:
                print(n3*3000)
                print(n4*6000)                
if t1==3:
    print(n1*3000)
    if t2==1:
        print(n2*6000)
        if t3==2:
                print(n3*4000)
                print(n4*2000)
        if t3==4:
                print(n3*2000)
                print(n4*4000)        
    if t2==2:
        print(n2*4000)
        if t3==1:
                print(n3*6000)
                print(n4*2000)
        if t3==4:
                print(n3*2000)
                print(n4*6000)                
    if t2==4:
        print(n2*2000)
        if t3==1:
                print(n3*6000)
                print(n4*3000)
        if t3==3:
                print(n3*3000)
                print(n4*6000)        
if t1==4:
    print(n1*2000)
    if t2==1:
        print(n2*6000)
        if t3==2:
                print(n3*4000)
                print(n4*3000)
        if t3==3:
                print(n3*3000)
                print(n4*4000)        
    if t2==2:
        print(n2*4000)
        if t3==1:
                print(n3*6000)
                print(n4*3000)
        if t3==3:
                print(n3*3000)
                print(n4*6000)        
    if t2==3:
        print(n2*3000)
        if t3==1:
                print(n3*6000)
                print(n4*4000)
        if t3==2:
                print(n3*4000)
                print(n4*6000)

Submission status: Accepted

Solution code:
t1,n1 = map(int,input().split())
t2,n2 = map(int,input().split())
t3,n3 = map(int,input().split())
t4,n4 = map(int,input().split())

if t1 == 1:
    print(6000 * n1)
elif t1 == 2:
    print(4000 * n1)
elif t1 == 3:
    print(3000 * n1)
elif t1 == 4:
    print(2000 * n1)

if t2 == 1:
    print(6000 * n2)
elif t2 == 2:
    print(4000 * n2)
elif t2 == 3:
    print(3000 * n2)
elif t2 == 4:
    print(2000 * n2)

if t3 == 1:
    print(6000 * n3)
elif t3 == 2:
    print(4000 * n3)
elif t3 == 3:
    print(3000 * n3)
elif t3 == 4:
    print(2000 * n3)

if t4 == 1:
    print(6000 * n4)
elif t4 == 2:
    print(4000 * n4)
elif t4 == 3:
    print(3000 * n4)
elif t4 == 4:
    print(2000 * n4)

Submission status: Accepted

Solution code:
for i in range(4):
    a,b=map(int,input().split())
    if a==1:
       print(6000*b)
    if a==2:
        print(4000*b)
    if a==3:
        print(3000*b)
    if a==4:
        print(2000*b)

Submission status: Accepted

Solution code:
for i in range(4):
    a,b = map(int,input().split())
    if a == 1:
        print(6000*b)
    elif a == 2:
        print(4000*b)
    elif a == 3:
        print(3000*b)
    elif a == 4:
        print(2000*b)
    else:
        pass

Submission status: Accepted

Solution code:
A = [0, 6000, 4000, 3000, 2000]
for i in range(4):
  a, b = map(int, input().split())
  print(A[a] * b)

Submission status: Accepted

Solution code:
for i in range(4):
    t,n=map(int,input().split())
    if t==1:
        print(f'{6000*n}')
    elif t==2:
        print(f'{4000*n}')
    elif t==3:
        print(f'{3000*n}')
    elif t==4:
        print(f'{2000*n}')

Submission status: Accepted

Solution code:
for i in range(4):
    t,n=map(int,input().split())
    if t==1:
        print(6000*n)
    elif t==2:
        print(4000*n)
    elif t==3:
        print(3000*n)
    elif t==4:
        print(2000*n)
    else:
        break

Submission status: Accepted

Solution code:
i=0
m=0
for i in range(4):
    a,b=map(int,input().split())
    if a==1:
        print(6000*b)
    elif a==2:
        print(4000*b)
    elif a==3:
        print(3000*b)
    else:
        print(2000*b)
    i+=1

Submission status: Accepted

Solution code:
for _ in range(4):
    t,n = map(int,input().split())
    if t == 1:
        print(6000*n)
    elif t == 2:
        print(4000*n)
    elif t == 3:
        print(3000*n)
    elif t == 4:
        print(2000*n)

Submission status: Accepted

Solution code:
t1,n1=(int(x) for x in input().split())
t2,n2=(int(x) for x in input().split())
t3,n3=(int(x) for x in input().split())
t4,n4=(int(x) for x in input().split())

if t1==1:
    print(n1*6000)
elif t1==2:
    print(n1*4000)
elif t1==3:
    print(n1*3000)
else:
    print(n1*2000)
    
if t2==1:
    print(n2*6000)
elif t2==2:
    print(n2*4000)
elif t2==3:
    print(n2*3000)
else:
    print(n2*2000)

if t3==1:
    print(n3*6000)
elif t3==2:
    print(n3*4000)
elif t3==3:
    print(n3*3000)
else:
    print(n3*2000)

if t4==1:
    print(n4*6000)
elif t4==2:
    print(n4*4000)
elif t4==3:
    print(n4*3000)
else:
    print(n4*2000)

Submission status: Accepted

Solution code:
xy=[map(int,input().split()) for a in range(4)]
x,y=[list(i) for i in zip(*xy)]

for i in range(4):
    if x[i]==1:
        print(y[i]*6000)
    elif x[i]==2:
        print(y[i]*4000)
    elif x[i]==3:
        print(y[i]*3000)
    else:
        print(y[i]*2000)

Submission status: Accepted

Solution code:
price = [0, 6000, 4000, 3000, 2000]

for i in range(4):
    p, n = map(int, input().split())
    print(price[p] * n)

Submission status: Accepted

Solution code:
for i in range(4) :
    t, n = map(int, input().split())
    if t == 1 :
        print(6000 * n)
    elif t == 2 :
        print(4000 * n)
    elif t == 3 :
        print(3000 * n)
    elif t == 4 :
        print(2000 * n)

Submission status: Accepted

Solution code:
for i in range(4) :
    t, n = map(int, input().split())
    if t == 1 :
        print(6000 * n)
    elif t == 2 :
        print(4000 * n)
    elif t == 3 :
        print(3000 * n)
    elif t == 4 :
        print(2000 * n)

Submission status: Accepted

Solution code:
for i in range(4):
    a,b=map(int,input().split())
    if a==1:
        print(6000*b)
    if a==2:
        print(4000*b)
    if a==3:
        print(3000*b)
    if a==4:
        print(2000*b)

Submission status: Accepted

Solution code:
for i in range(4):
    t,n=map(int,input().split())
    if t==1:
        print(6000*n)
    elif t==2:
        print(4000*n)
    elif t==3:
        print(3000*n)
    elif t==4:
        print(2000*n)

Submission status: Accepted

Solution code:
for i in range(4):
    t, n = map(int, input().split())
    if t==1:
        print(6000*n)
    elif t==2:
        print(4000*n)
    elif t==3:
        print(3000*n)
    else:
        print(2000*n)

Submission status: Accepted

Solution code:
for i in range(4):
    t,n = map(int,input().split())
    if t == 1:
        print ( n * 6000 )
    elif t == 2:
        print ( n * 4000 )
    elif t == 3:
        print ( n * 3000 )
    elif t == 4:
        print ( n * 2000 )

Submission status: Accepted

Solution code:
for i in range(4):
   t,n=map(int,input().split())
   if t==1:
      x=6000
   elif t==2:
      x=4000
   elif t==3:
      x=3000
   elif t==4:
      x=2000
   print(str(x*n))

Submission status: Accepted

Solution code:
i=0
while i <4:
    a,b=map(int,input().split())
    if a==1:
        print(b*6000)
    elif a==2:
        print(b*4000)
    elif a==3:
        print(b*3000)
    else:
        print(b*2000)
    i += 1

Submission status: Accepted

Solution code:
for i in range(4):
    a,b=map(int,input().split())
    if a==1:
        print(6000*b)
    elif a==2:
        print(4000*b)
    elif a==3:
        print(3000*b)
    elif a==4:
        print(2000*b)

Submission status: Accepted

Solution code:
a=[0,6000,4000,3000,2000]
for i in range(4):
    t,n=map(int,input().split())
    print(n*a[t])

Submission status: Accepted

Solution code:
list=[None,6000,4000,3000,2000]
for i in range(4):
  t,n=map(int,input().split())
  print(list[t]*n)

Submission status: Accepted

Solution code:
i=0
while i<4:
    t,n=map(int,input().split())
    if t==1:
        ans=n*6000
    elif t==2:
        ans=n*4000
    elif t==3:
        ans=n*3000
    elif t==4:
        ans=n*2000
    
    print(ans)
    i+=1

Submission status: Accepted

Solution code:
for  i in range(4):
    t,n=map(int,input().split())
    if t==1:
        print(n*6000)
    elif t==2:
        print(n*4000)
    elif t==3:
        print(n*3000)
    elif t==4:
        print(n*2000)

Submission status: Accepted

Solution code:
for i in range(4):
    ti,ni=map(int,input().split())
    if ti==1:
        print(6000*ni)
    if ti==2:
        print(4000*ni)
    if ti==3:
        print(3000*ni)
    if ti==4:
        print(2000*ni)

Submission status: Accepted

Solution code:
t1, n1= map(int, input(). split())
t2, n2= map(int, input(). split())
t3, n3= map(int, input(). split())
t4, n4= map(int, input(). split())

i = 1
while i <= 4:
    if t1== 1:
        t1 = 6000
    elif t1 == 2:
        t1 = 4000
    elif t1 == 3:
        t1 = 3000
    elif t1 == 4:
        t1 = 2000

    elif t2 == 1:
        t2 = 6000
    elif t2 == 2:
        t2 = 4000
    elif t2 == 3:
        t2 = 3000
    elif t2 == 4:
        t2 = 2000

    elif t3 == 1:
        t3 = 6000
    elif t3 == 2:
        t3 = 4000
    elif t3 == 3:
        t3 = 3000
    elif t3 == 4:
        t3 = 2000

    elif t4 == 1:
        t4 = 6000
    elif t4 == 2:
        t4 = 4000
    elif t4 == 3:
        t4 = 3000
    elif t4 == 4:
        t4 = 2000
        
    i += 1
    
print(t1*n1)
print(t2*n2)
print(t3*n3)
print(t4*n4)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

for i in range(4) :
   t, n = map(int, input().split())
   if t == 1:
      print(n * 6000)
   elif t == 2:
      print(n * 4000)
   elif t == 3:
      print(n * 3000)
   else:
      print(n * 2000)

Submission status: Accepted

Solution code:
dic = {1 : 6000, 2 : 4000, 3 : 3000, 4 : 2000}

for i in range(4) :
    t, n = map(int, input().split())
    print(dic[t] * n)

Submission status: Accepted

Solution code:
i=1
while i<=4:
 t,n = map(int,input().split())
 i += 1
 if t == 1: print(6000*n)
 elif t == 2: print(4000*n)
 elif t == 3: print(3000*n)
 else: print(2000*n)

Submission status: Accepted

Solution code:
i = 1
while i <= 4:
    t,n =map(int,input().split())
    if t ==1:
        n1 = n * 6000
        print(n1)
    elif t == 2:
        n2 = n * 4000
        print(n2)
    elif t == 3:
        n3 = n*3000
        print(n3)
    else:
        n4 = n*2000
        print(n4)
        
    i += 1

Submission status: Accepted

Solution code:
x=[0,6000,4000,3000,2000]
for i in range(1,5):
    t,n=map(int,input().split())
    print(n*x[t])

Submission status: Accepted

Solution code:
data=[list(map(int,input().split())) for _ in range(4)]
n=0
while n<4:
    a=data[n][0]
    b=data[n][1]
    if a==1:
        print(6000*b)
        n+=1
    if a==2:
        print(4000*b)
        n+=1
    if a==3:
        print(3000*b)
        n+=1
    if a==4:
        print(2000*b)
        n+=1

Submission status: Accepted

Solution code:
ticket={1:6000, 2:4000, 3:3000, 4:2000}
for i in range(4):
    t,n=map(int,input().split())
    print(n*ticket[t])

Submission status: Accepted

Solution code:
tn=[map(int,input().split()) for _ in range(4)]
t,n=[list(i) for i in zip(*tn)]

l=[]
for x in range(4):
    if t[x]==1:
        l.append(6000*n[x])
    elif t[x]==2:
        l.append(4000*n[x])
    elif t[x]==3:
        l.append(3000*n[x])
    else:
        l.append(2000*n[x])
print(l[0])
print(l[1])
print(l[2])
print(l[3])

Submission status: Accepted

Solution code:
ticket={1:6000,2:4000,3:3000,4:2000}

for i in range(4):
    t,n=map(int,input().split())
    print(n*ticket[t])

Submission status: Accepted

Solution code:
i = 1
while i <= 4:
    s_i,n_i = map(int,input().split())
    if s_i == 1:
        x = n_i * 6000
    elif s_i == 2:
        x = n_i * 4000
    elif s_i == 3:
        x = n_i * 3000
    else:
        x = n_i * 2000
    print(x)
    i += 1

Submission status: Accepted

Solution code:
i=1
while i<=4:
    t,n=map(int,input().split())
    if t==1:
        n1=n*6000
        print(n1)
    elif t==2:
        n2=n*4000
        print(n2)
    elif t==3:
        n3=n*3000
        print(n3)
    else:
        n4=n*2000
        print(n4)
    i+=1

Submission status: Accepted

Solution code:
f1, n1 = (int(x) for x in input().split())
f2, n2 = (int(x) for x in input().split())
f3, n3 = (int(x) for x in input().split())
f4, n4 = (int(x) for x in input().split())

if f1 == 1:
    print(6000*n1)
if f1 == 2:
    print(4000*n1)
if f1 == 3:
    print(3000*n1)
if f1 == 4:
    print(2000*n1)
    
if f2 == 1:
    print(6000*n2)
if f2 == 2:
    print(4000*n2)
if f2 == 3:
    print(3000*n2)
if f2 == 4:
    print(2000*n2)

if f3 == 1:
    print(6000*n3)
if f3 == 2:
    print(4000*n3)
if f3 == 3:
    print(3000*n3)
if f3 == 4:
    print(2000*n3)
    
if f4 == 1:
    print(6000*n4)
if f4 == 2:
    print(4000*n4)
if f4 == 3:
    print(3000*n4)
if f4 == 4:
    print(2000*n4)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

for i in range(4):
    t,n=map(int,input().split())
    K = int()
    if t==1:
        K = 6000*n
    elif t==2:
        K = 4000*n
    elif t==3:
        K = 3000*n
    else:
        K = 2000*n
    print(K)

Submission status: Accepted

Solution code:
i=1
while i<5:
     t_i,n_i=map(int,input().split())
     if t_i==1:a=n_i*6000
     if t_i==2:a=n_i*4000
     if t_i==3:a=n_i*3000
     if t_i==4:a=n_i*2000
     print(a)
     i=i+1

Submission status: Accepted

Solution code:
t1,n1 = map(int,input().split())
t2,n2 = map(int,input().split())
t3,n3 = map(int,input().split())
t4,n4 = map(int,input().split())
ti = [t1,t2,t3,t4,0]
ni = [n1,n2,n3,n4,0]
i = 0
while ti[i] != 0:
    if ti[i] == 1:
        print(ni[i]*6000)
    elif ti[i] == 2:
        print(ni[i]*4000)
    elif ti[i] == 3:
        print(ni[i]*3000)
    else:
        print(ni[i]*2000)
    i += 1

Submission status: Accepted

Solution code:
t1,n1 = map(int, input().split())
t2,n2 = map(int, input().split())
t3,n3 = map(int, input().split())
t4,n4 = map(int, input().split())

if t1==1:
    print(n1*6000)
elif t1==2:
    print(n1*4000)
elif t1==3:
    print(n1*3000)
else:
    print(n1*2000)

if t2==1:
    print(n2*6000)
elif t2==2:
    print(n2*4000)
elif t2==3:
    print(n2*3000)
else:
    print(n2*2000)

if t3==1:
    print(n3*6000)
elif t3==2:
    print(n3*4000)
elif t3==3:
    print(n3*3000)
else:
    print(n3*2000)

if t4==1:
    print(n4*6000)
elif t4==2:
    print(n4*4000)
elif t4==3:
    print(n4*3000)
else:
    print(n4*2000)

Submission status: Accepted

Solution code:

t1,n1=map(int,input().split())
t2,n2=map(int,input().split())
t3,n3=map(int,input().split())
t4,n4=map(int,input().split())

I=[t1,n1,t2,n2,t3,n3,t4,n4]
i=0
while i<8:
    if I[i]==1:
        print(6000*I[i+1])
    elif I[i]==2:
        print(4000*I[i+1])
    elif I[i]==3:
        print(3000*I[i+1])
    else:
        print(2000*I[i+1])
    i=i+2

Submission status: Accepted

Solution code:
tic={1:6000,2:4000,3:3000,4:2000}
for i in range(4):
   t,n=map(int,input().split())
   print(n*tic[t])

Submission status: Accepted

Solution code:
while True:
    try:
        a=list(map(int,input().split()))
        #listA<-[1,2,2,3,1]
        #ここに逐次処理を書けばいいと思う。
        if a[0]==1:
            print(a[-1]*6000)
        elif a[0]==2:
            print(a[-1]*4000)
        elif a[0]==3:
            print(a[-1]*3000)
        else:
            print(a[-1]*2000)
        
    except:
        break;

Submission status: Accepted

Solution code:
c = 0

while c <= 3:
    t, n = map(int,input().split())
    c = c + 1

    if t == 1:
        n = n*6000
    elif t == 2:
        n = n*4000
    elif t == 3:
        n = n*3000
    elif t == 4:
        n = n*2000

    print(n)

Submission status: Accepted

Solution code:
a1,b1=map(int,input().split())
a2,b2=map(int,input().split())
a3,b3=map(int,input().split())
a4,b4=map(int,input().split())

if a1==1:
    d1=6000
if a1==2:
    d1=4000
if a1==3:
    d1=3000
if a1==4:
    d1=2000
    
c1=d1*b1

if a2==1:
    d2=6000
if a2==2:
    d2=4000
if a2==3:
    d2=3000
if a2==4:
    d2=2000
    
c2=d2*b2

if a3==1:
    d3=6000
if a3==2:
    d3=4000
if a3==3:
    d3=3000
if a3==4:
    d3=2000
    
c3=d3*b3

if a4==1:
    d4=6000
if a4==2:
    d4=4000
if a4==3:
    d4=3000
if a4==4:
    d4=2000
    
c4=d4*b4

print(c1)
print(c2)
print(c3)
print(c4)

Submission status: Accepted

Solution code:
count = 0
while count < 4:
    count += 1
    a,b=map(int,input().split())
    if(a==1):
        print(b*6000)
    elif(a==2):
        print(b*4000)
    elif(a==3):
        print(b*3000)
    elif(a==4):
        print(b*2000)

Submission status: Accepted

Solution code:
i=0
for i in range(4):
    a,b=map(int,input().split())
    if a==1:
        print(6000*b)
    elif a==2:
        print(4000*b)
    elif a==3:
        print(3000*b)
    elif a==4:
        print(2000*b)

Submission status: Accepted

Solution code:
data=[list(map(int,input().split())) for _ in range(4)]
n=0
while n<4:
    t=data[n][0]
    s=data[n][1]
    if t==1:
        print(6000*s)
        n+=1
    if t==2:
        print(4000*s)
        n+=1
    if t==3:
        print(3000*s)
        n+=1
    if t==4:
        print(2000*s)
        n+=1

Submission status: Accepted

Solution code:
S=6000
A=4000
B=3000
C=2000

for k in range(4):
    i,n1=map(int,input().split())
    if i==1:
        print(f"{S*n1}")
    elif i==2:
        print(f"{A*n1}")
    elif i==3:
        print(f"{B*n1}")
    elif i==4:
        print(f"{C*n1}")

Submission status: Accepted

Solution code:
t1, n1 = map(int,input().split())
t2, n2 = map(int,input().split())
t3, n3 = map(int,input().split())
t4, n4 = map(int,input().split())
def f(x,y):
    if x == 1 :
        print(int(6000*y))
    if x == 2 :
        print(int(4000*y))
    if x == 3 :
        print(int(3000*y))
    if x == 4 :
        print(int(2000*y))
f(t1,n1)
f(t2,n2)
f(t3,n3)
f(t4,n4)

Submission status: Accepted

Solution code:
i=0
while i<4:
   t,n=map(int,input().split())
   if t==1:
       money=n*6000
       print(money)
   elif t==2:
       money=n*4000
       print(money)
   elif t==3:
       money=n*3000
       print(money)
   elif t==4:
       money=n*2000
       print(money)
   i+=1

Submission status: Accepted

Solution code:
for i in range(4):
    t, n = map(int, input().split())
    
    if t == 1:
        print(6000*n)
    elif t == 2:
        print(4000*n)
    elif t == 3:
        print(3000*n)
    else:
        print(2000*n)

Submission status: Accepted

Solution code:
a=[0,6000,4000,3000,2000]
for x in range(4):
    t,n=list(map(int,input().split()))
    print(a[t]*n)

Submission status: Accepted

Solution code:
for i in range(4):
    t , n = map(int,input().split())
    if t == 1:
        print(6000 * n)
    elif t == 2:
        print(4000 * n)
    elif t == 3:
        print(3000 * n)
    else:
        print(2000 * n)

Submission status: Accepted

Solution code:
t1,n1=map(int,input().split())
t2,n2=map(int,input().split())
t3,n3=map(int,input().split())
t4,n4=map(int,input().split())

def keisan(t,n):
    if t==1:
        return(n*6000)
    elif t==2:
        return(n*4000)
    elif t==3:
        return(n*3000)
    else:
        return(n*2000)

print(keisan(t1,n1))
print(keisan(t2,n2))
print(keisan(t3,n3))
print(keisan(t4,n4))

Submission status: Accepted

Solution code:
for i in range(4):
    t,n=map(int,input().split())
    if t==1:
        print(f'{6000*n}')
    elif t==2:
        print(f'{4000*n}')
    elif t==3:
        print(f'{3000*n}')
    elif t==4:
        print(f'{2000*n}')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

for i in range(4) :
   t, n = map(int, input().split())
   if t == 1:
      print(n * 6000)
   elif t == 2:
      print(n * 4000)
   elif t == 3:
      print(n * 3000)
   else:
      print(n * 2000)

Submission status: Accepted

Solution code:
i=0
while i<4:
    t,n=map(int,input().split())
    if t==1:
        money=n*6000
        print(money)
    elif t==2:
        money=n*4000
        print(money)
    elif t==3:
        money=n*3000
        print(money)
    elif t==4:
        money=n*2000
        print(money)
    i+=1

Submission status: Accepted

Solution code:
for _ in range(4):
    a,b = map(int,input().split()) #標準入力
    if a == 1:print(b * 6000) #s席なら6000をかける
    if a == 2:print(b * 4000) #A席なら4000をかける
    if a == 3:print(b * 3000) #B席なら3000をかける
    if a == 4:print(b * 2000) #C席なら2000をかける

Submission status: Accepted

Solution code:
for x in range(4):
    t,n=map(int,input().split())
    
    if t==1:
        print(6000*n)
        
    if t==2:
        print(4000*n)
        
    if t==3:
        print(3000*n)
    
    if t==4:
        print(2000*n)

Submission status: Accepted

Solution code:
a,m=map(int, input().split())
b,n=map(int, input().split())
c,l=map(int, input().split())
d,o=map(int, input().split())
 
def cal(e,p):
    if e==1:
        x=p*6000 
        return x
        
    elif e==2:
        x=p*4000
        return x
        
    elif e==3:
        x=p*3000
        return x
        
    else:
        x=p*2000
        return x

x1=cal(a,m)
x2=cal(b,n)
x3=cal(c,l)
x4=cal(d,o)

print(x1)
print(x2)
print(x3)
print(x4)

Submission status: Accepted

Solution code:
list=[0,6000,4000,3000,2000]
for i in range(4):
    a, b = map(int, input().split())
    print(b*list[a])

Submission status: Accepted

Solution code:
for i in range(4):
    ti,ni=map(int,input().split())
    
    if ti==1:
        print(6000*ni)
    if ti==2:
        print(4000*ni)
    if ti==3:
        print(3000*ni)
    if ti==4:
        print(2000*ni)

Submission status: Accepted

Solution code:
for i in range(4):
    ti,ni=map(int,input().split())
    if ti==1:
        print(ni*6000)
    if ti==2:
        print(ni*4000)
    if ti==3:
        print(ni*3000)
    if ti==4:
        print(ni*2000)

Submission status: Accepted

Solution code:
for i in range(4):
    ti,ni=map(int,input().split())

    if ti==1:
        X=6000*ni
    if ti==2:
        X=4000*ni
    if ti==3:
        X=3000*ni
    if ti==4:
        X=2000*ni
    print(X)

Submission status: Accepted

Solution code:
x, a=map(int,input().split())
y, b=map(int,input().split())
z, c=map(int,input().split())
r, d=map(int,input().split())

if x==2 or  x==4:
    t=8000//x*a
    print(t)
elif x==1:
    t=6000*a
    print(t)

else:
    t=3000*a
    print(t)
    
if y==2 or  y==4:
    t=8000//y*b
    print(t)
elif y==1:
    t=6000*b
    print(t)

else:
    t=3000*b
    print(t)
    
if z==2 or  z==4:
    t=8000//z*c
    print(t)
elif z==1:
    t=6000*c
    print(t)

else:
    t=3000*c
    print(t)
    

if r==2 or  r==4:
    t=8000//r*d
    print(t)
elif r==1:
    t=6000*d
    print(t)

else:
    t=3000*d
    print(t)

Submission status: Accepted

Solution code:
a,A=map(int,input().split())
b,B=map(int,input().split())
c,C=map(int,input().split())
d,D=map(int,input().split())


if (a == 1):
    print(A*6000)
elif (a == 2):
    print(A*4000)
elif (a == 3):
    print(A*3000)
elif (a == 4):
    print(A*2000)


if (b == 1):
    print(B*6000)
elif (b == 2):
    print(B*4000)
elif (b == 3):
    print(B*3000)
elif (b == 4):
    print(B*2000)


if (c == 1):
    print(C*6000)
elif (c == 2):
    print(C*4000)
elif (c == 3):
    print(C*3000)
elif (c == 4):
    print(C*2000)


if (d == 1):
    print(D*6000)
elif (d == 2):
    print(D*4000)
elif (d == 3):
    print(D*3000)
elif (d == 4):
    print(D*2000)

Submission status: Accepted

Solution code:
a,A=input().split()
b,B=input().split()
c,C=input().split()
d,D=input().split()
e=a,A,b,B,c,C,d,D
i=0
w=0
x=[0,0,0,0]
while i<8 : 
    if int(e[i])==1 : w=6000*int(e[i+1]) 
    elif int(e[i])==2 : w=4000*int(e[i+1])
    elif int(e[i])==3 : w=3000*int(e[i+1])
    else : w=2000*int(e[i+1])
    x[int(i/2)]=w
    i=i+2
W=x[0]
X=x[1]
Y=x[2]
Z=x[3]
    
print(W)
print(X)
print(Y)
print(Z)

Submission status: Accepted

Solution code:
dic = {1 : 6000, 2 : 4000, 3 : 3000, 4 : 2000}

for i in range(4) :
    t, n = map(int, input().split())
    print(dic[t] * n)

Submission status: Accepted

Solution code:
for i in range(4):
  t,n = map(int,input().split())
  x = 0
  if t == 1:
    x = 6000*n
  elif t == 2:
    x = 4000*n
  elif t == 3:
    x = 3000*n
  else:
    x = 2000*n
  print(x)

Submission status: Accepted

Solution code:
d = {1:6000, 2:4000, 3:3000, 4:2000}

for i in range(4):
    t,n = map(int,input().split())
    print(d[t]*n)

Submission status: Accepted

Solution code:
pay = [6000,4000,3000,2000]
for i in range(4):
    a,b = map(int,input().split())
    print(pay[a-1]*b)

Submission status: Accepted

Solution code:
P = [ 6000, 4000, 3000, 2000]

while True:
    try:
        t, num = [int(x) for x in input().split()]
    except:
        break
    
    print(P[t-1]*num)

Submission status: Accepted

Solution code:
X = [[int(_) for _ in input().split()] for _ in range(4)]

price = [0, 6000, 4000, 3000, 2000]

for t, n in X:
    print(price[t] * n)

Submission status: Accepted

Solution code:
for i in range(4):
    t,n=map(int,input().split())
    if t == 1:
        print(6000*n)
    elif t == 2:
        print(4000*n)
    elif t == 3:
        print(3000*n)
    else:
        print(2000*n)

Submission status: Accepted

Solution code:
i = 0
while True:
    if i == 4: break
    t, n = map(int, input().split())
    if t == 1:
        print(n*6000)
    elif t == 2:
        print(n*4000)
    elif t == 3:
        print(n*3000)
    elif t == 4:
        print(n*2000)
    i += 1

Submission status: Accepted

Solution code:
price = [0, 6000, 4000, 3000, 2000]
  
for _ in range(4):
    t, n = map(int, input().split())
    print(price[t] * n)

Submission status: Accepted

Solution code:
price = [0, 6000, 4000, 3000, 2000]
 
for _ in range(4):
    t, n = map(int, input().split())
    print(price[t] * n)

Submission status: Accepted

Solution code:
for i in range(4):
  t,s = map(int,input().split(" "))
  
  if t == 1:
    print(s*6000)
  elif t == 2:
    print(s*4000)
  elif t == 3:
    print(s*3000)
  else:
    print(s*2000)

Submission status: Accepted

Solution code:
ticket = {1:6000, 2:4000, 3:3000, 4:2000}
for i in range(4):
    t, n = map(int, input().split())
    print(n*ticket[t])

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

for l in range(4):
    t,n = [int(i) for i in input().split()]
    if t == 1:
        print(6000*n)
    elif t == 2:
        print(4000*n)
    elif t == 3:
        print(3000*n)
    elif t == 4:
        print(2000*n)

Submission status: Accepted

Solution code:
V = [0, 6000, 4000, 3000, 2000]
for i in range(4):
    t, n = map(int, input().split())
    print(n*V[t])

Submission status: Accepted

Solution code:
p=[0,6000,4000,3000,2000]
for i in range(4):
    t,n=map(int,input().split())
    print(p[t]*n)

Submission status: Accepted

Solution code:
price = [0, 6000, 4000, 3000, 2000]

for _ in range(4):
    t, n = map(int, input().split())
    print(price[t] * n)

Submission status: Runtime Error

Solution code:
while True:
 t,n=map(input,raw_input().split())
 list=[0,0,0,0]
 if(t==1):
  list[t-1]+=n*6000
 if(t==2):
  list[t-1]+=n*4000
 if(t==3):
  list[t-1]+=n*3000
 if(t==4):
  list[t-1]+=n*2000
for i in range(0,4):
  print list[i]

Submission status: Runtime Error

Solution code:
while t,n=map(input,raw_input().split()):
 list=[0,0,0,0]
 if(t==1):
  list[t-1]+=n*6000
 if(t==2):
  list[t-1]+=n*4000
 if(t==3):
  list[t-1]+=n*3000
 if(t==4):
  list[t-1]+=n*2000
for i in range(0,4):
  print list[i]