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:
val = ( \
        0,
        6000,
        4000,
        3000,
        2000)

for v in [(lambda s: val[s[0]] * s[1])(list(map(int,input().split()))) for i in range(4)]:
    print(v)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

for s in sys.stdin:
 t,n = map(int,s.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:
import sys
f = sys.stdin

values = [None,6000,4000,3000,2000]
for line in f:
    t, n = map(int, line.split())
    print(values[t] * n)

Submission status: Accepted

Solution code:
u = {1:6000 , 2:4000 , 3:3000, 4:2000}
for _ in xrange(4):
  a, b = [ int(_) for _ in raw_input().split() ]
  print u[a] * b

Submission status: Accepted

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

Submission status: Accepted

Solution code:
prices = [None, 6000, 4000, 3000, 2000]
sales = [0] * 5

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

Submission status: Accepted

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

if __name__ == "__main__":
    for i in range(4):
        sales = list(map(int, input().split()))
        print("{0}".format(ticket_price[sales[0]] * sales[1]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
p=[6,4,3,2]
for _ in range(4):
  t,n=map(int,input().split())
  print(p[t-1]*n*1000)

Submission status: Accepted

Solution code:
for i in range(4):
    _in=[int(num)for num in input().split(' ')]
    n=_in[0]
    if n==1:
        print(6000*_in[1])
    elif n==2:
        print(4000*_in[1])
    elif n==3:
        print(3000*_in[1])
    else:
        print(2000*_in[1])

Submission status: Accepted

Solution code:
#coding:utf-8

table = [6000,4000,3000,2000]
for i in range(4):
	data = [int(x) for x in input().split()]
	print(table[data[0]-1]*data[1])

Submission status: Accepted

Solution code:
# Aizu Problem 0277: Ticket Sale

import sys, math, os, datetime

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


price = {1: 6000, 2: 4000, 3: 3000, 4: 2000}
for k in range(4):
    t, n = [int(_) for _ in input().split()]
    print(n * price[t])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# AOJ 0277: Ticket Sales
# Python3 2018.6.23 bal4u

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:
dic = {1:6000, 2:4000, 3:3000, 4:2000}
for _ in range(4):
  t, n = map(int, input().split())
  print(dic[t] * n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t=[6000,4000,3000,2000]
for i in xrange(4):
    l=map(int,raw_input().split())
    print l[1]*t[l[0]-1]

Submission status: Accepted

Solution code:
r={1:6,2:4,3:3,4:2}
for i in [1]*4:
	t,n=map(int,raw_input().split())
	print r[t]*n*1000

Submission status: Accepted

Solution code:
r={1:6,2:4,3:3,4:2}
for i in r:
	t,n=map(int,raw_input().split())
	print r[t]*n*1000

Submission status: Accepted

Solution code:
p=[6,4,3,2]
for _ in range(4):
	t,n=map(int,input().split())
	print(p[t-1]*n*1000)

Submission status: Accepted

Solution code:
a=[0,6000,4000,3000,2000]
for _ in range(4):
  (t,n)=map(int,input().split())
  print(a[t]*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:
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:
while True:
    try:
        t,n=map(int,input().split())
        if t==1:
            k=6000
        elif t==2:
            k=4000
        elif t==3:
            k=3000
        else:
            k=2000
        print(k*n)
    except:
        break

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)
   else:
      print(n * 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())

if t1==1:
    A=6000*n1
elif t1==2:
    A=4000*n1
elif t1==3:
    A=3000*n1
else:
    A=2000*n1
    
if t2==1:
    B=6000*n2
elif t2==2:
    B=4000*n2
elif t2==3:
    B=3000*n2
else:
    B=2000*n2
    
if t3==1:
    C=6000*n3
elif t3==2:
    C=4000*n3
elif t3==3:
    C=3000*n3
else:
    C=2000*n3
    
if t4==1:
    D=6000*n4
elif t4==2:
    D=4000*n4
elif t4==3:
    D=3000*n4
else:
    D=2000*n4
    
print(A)
print(B)
print(C)
print(D)

Submission status: Accepted

Solution code:
a,b=(int(x) for x in input().split())
c,d=(int(x) for x in input().split())
e,f=(int(z) for z in input().split())
g,h=(int(s) for s in input().split())

if a==1:
    x=6000*b
    print(x)
    if c==2:
        y=4000*d
        print(y)
        if e==3:
            z=3000*f
            print(z)
        if e==4:
            z=2000*f
            print(z)
        if g==4:
            s=2000*h
            print(s)
        if g==3:
            s=3000*h
            print(s)
        
    if c==3:
        y=3000*d
        print(y)
        if e==2:
            z=4000*f
            print(z)
        if e==4:
            z=2000*f
            print(z)
        if g==4:
            s=2000*h
            print(s)
        if g==2:
            s=4000*h
            print(s)
        
    if c==4:
        y=2000*d
        print(y)
        if e==3:
            z=3000*f
            print(z)
        if e==2:
            z=4000*f
            print(z)
        if g==2:
            s=4000*h
            print(s)
        if g==3:
            s=3000*h
            print(s)

elif a==2:
    x=4000*b
    print(x)
    if c==1:
        y=6000*d
        print(y)
        if e==3:
            z=3000*f
            print(z)
        if e==4:
            z=2000*f
            print(z)
        if g==4:
            s=2000*h
            print(s)
        if g==3:
            s=3000*h
            print(s)
        
    if c==3:
        y=3000*d
        print(y)
        if e==1:
            z=6000*f
            print(z)
        if e==4:
            z=2000*nf
            print(z)
        if g==4:
            s=2000*h
            print(s)
        if g==1:
            s=6000*h
            print(s)
        
    if c==4:
        y=2000*d
        print(y)
        if e==3:
            z=3000*f
            print(z)
        if e==1:
            z=6000*f
            print(z)
        if g==1:
            s=6000*h
            print(s)
        if g==3:
            s=3000*h
            print(s)
        
elif a==3:
    x=3000*b
    print(x)
    if c==2:
        y=4000*d
        print(y)
        if e==1:
            z=6000*f
            print(z)
        if e==4:
            z=2000*f
            print(z)
        if g==4:
            s=2000*h
            print(s)
        if g==1:
            s=6000*h
            print(s)
        
    if c==1:
        y=6000*d
        print(y)
        if e==2:
            z=4000*f
            print(z)
        if e==4:
            z=2000*f
            print(z)
        if g==4:
            s=2000*h
            print(s)
        if g==2:
            s=4000*h
            print(s)
        
    if c==4:
        y=2000*d
        print(y)
        if e==1:
            z=6000*f
            print(z)
        if e==2:
            z=4000*f
            print(z)
        if g==2:
            s=4000*h
            print(s)
        if g==1:
            s=6000*h
            print(s)
        
else:
    x=2000*b
    print(x)
    if c==2:
        y=4000*d
        print(y)
        if e==3:
            z=3000*f
            print(z)
        if e==1:
            z=5000*f
            print(z)
        if g==1:
            s=6000*h
            print(s)
        if g==3:
            s=3000*h
            print(s)
        
    if c==3:
        y=3000*d
        print(y)
        if e==2:
            z=4000*f
            print(z)
        if e==1:
            z=6000*f
            print(z)
        if g==1:
            s=6000*h
            print(s)
        if g==2:
            s=4000*h
            print(s)
        
    if c==1:
        y=6000*d
        print(y)
        if e==3:
            z=3000*f
            print(z)
        if e==2:
            z=4000*f
            print(z)
        if g==2:
            s=6000*h
            print(s)
        if g==3:
            s=3000*h
            print(s)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
c,d=map(int,input().split())
e,f=map(int,input().split())
g,h=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)
if c==1:
    print(d*6000)
elif c==2:
    print(d*4000)
elif c==3:
    print(d*3000)
elif c==4:
    print(d*2000)
if e==1:
    print(f*6000)
elif e==2:
    print(f*4000)
elif e==3:
    print(f*3000)
elif e==4:
    print(f*2000)
if g==1:
    print(h*6000)
elif g==2:
    print(h*4000)
elif g==3:
    print(h*3000)
elif g==4:
    print(h*2000)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
for i in range(4):
    ti,ni=map(int,input().split())
    
    if ti==1:
        print(ni*6000)
    elif ti==2:
        print(ni*4000)
    elif ti==3:
        print(ni*3000)
    else:
        print(ni*2000)

Submission status: Accepted

Solution code:
p=[6,4,3,2]
for _ in range(4):
  t,n=map(int,input().split())
  print(p[t-1]*n*1000)

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(ticket[t]*n)

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(4):
    t,n = map(int,input().split())
    print(x[t] * 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)
    else:
        print(n*2000)

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:
ticket = {1:6000, 2:4000, 3:3000, 4:2000}
for i in range(4):
	t, n = map(int, input().split())
	print(ticket[t]*n)

Submission status: Accepted

Solution code:
a,n1=map(int,input().split())
b,n2=map(int,input().split())
c,n3=map(int,input().split())
d,n4=map(int,input().split())

t1=6000
t2=4000
t3=3000
t4=2000

if a==1:
    if b==2:
        if c==3:
            print(t1*n1)
            print(t2*n2)
            print(t3*n3)
            print(t4*n4)
        else:
            print(t1*n1)
            print(t2*n2)
            print(t4*n3)
            print(t3*n4)
    elif b==3:
        if c==2:
            print(t1*n1)
            print(t3*n2)
            print(t2*n3)
            print(t4*n4)
        else:
            print(t1*n1)
            print(t3*n2)
            print(t4*n3)
            print(t2*n4)
    else:
        if c==2:
            print(t1*n1)
            print(t4*n2)
            print(t2*n3)
            print(t3*n4)
        else:
            print(t1*n1)
            print(t4*n2)
            print(t3*n3)
            print(t2*n4)


elif a==2:
    if b==1:
        if c==3:
            print(t2*n1)
            print(t1*n2)
            print(t3*n3)
            print(t4*n4)
        else:
            print(t2*n1)
            print(t1*n2)
            print(t4*n3)
            print(t3*n4)
    elif b==3:
        if c==1:
            print(t2*n1)
            print(t3*n2)
            print(t1*n3)
            print(t4*n4)
        else:
            print(t2*n1)
            print(t3*n2)
            print(t4*n3)
            print(t1*n4)
    else:
        if c==1:
            print(t2*n1)
            print(t4*n2)
            print(t1*n3)
            print(t3*n4)
        else:
            print(t2*n1)
            print(t4*n2)
            print(t3*n3)
            print(t*n4)

elif a==3:
    if b==1:
        if c==2:
            print(t3*n1)
            print(t1*n2)
            print(t2*n3)
            print(t4*n4)
        else:
            print(t3*n1)
            print(t1*n2)
            print(t4*n3)
            print(t2*n4)
    elif b==2:
        if c==1:
            print(t3*n1)
            print(t2*n2)
            print(t1*n3)
            print(t4*n4)
        else:
            print(t3*n1)
            print(t2*n2)
            print(t4*n3)
            print(t1*n4)
    else:
        if c==1:
            print(t3*n1)
            print(t4*n2)
            print(t1*n3)
            print(t2*n4)
        else:
            print(t3*n1)
            print(t4*n2)
            print(t2*n3)
            print(t1*n4)

else:
    if b==1:
        if c==2:
            print(t4*n1)
            print(t1*n2)
            print(t2*n3)
            print(t3*n4)
        else:
            print(t4*n1)
            print(t1*n2)
            print(t3*n3)
            print(t2*n4)
    elif b==2:
        if c==1:
            print(t4*n1)
            print(t2*n2)
            print(t1*n3)
            print(t3*n4)
        else:
            print(t4*n1)
            print(t2*n2)
            print(t3*n3)
            print(t1*n4)
    else:
        if c==1:
            print(t4*n1)
            print(t3*n2)
            print(t1*n3)
            print(t2*n4)
        else:
            print(t3*n1)
            print(t3*n2)
            print(t2*n3)
            print(t1*n4)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
costs = []
for _ in range(0, 4):
  i, v = map(int, input().split())
  if i == 1:
    costs.append(6000*v)
  elif i == 2:
    costs.append(4000*v)
  elif i == 3:
    costs.append(3000*v)
  elif i == 4:
    costs.append(2000*v)

for cost in costs:
  print(cost)

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:
list=[]
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:
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:
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:
list=[]
for i in range(4):
    a,b=map(int,input().split())
    if a==1:
        a=6000
    elif a==2:
        a=4000
    elif a==3:
        a=3000
    else:
        a=2000
    list.append((a,b))
    print(a*b)

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)

Submission status: Accepted

Solution code:
for i in range(1,5):
    
    t_i,n_i=map(int,input().split())

    if t_i==1:
        print(n_i*6000)
    if t_i==2:
        print(n_i*4000)
    if t_i==3:
        print(n_i*3000)
    if t_i==4:
        print(n_i*2000)

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:
L = [6000,4000,3000,2000]
for i in range(4):
    t,n  = map(int,input().split())
    print(L[t-1]*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(6000*n1)
elif t1==2:
    print(4000*n1)
elif t1==3:
    print(3000*n1)
else:
    print(2000*n1)
    
if t2==1:
    print(6000*n2)
elif t2==2:
    print(4000*n2)
elif t2==3:
    print(3000*n2)
else:
    print(2000*n2)
    
if t3==1:
    print(6000*n3)
elif t3==2:
    print(4000*n3)
elif t3==3:
    print(3000*n3)
else:
    print(2000*n3)
    
if t4==1:
    print(6000*n4)
elif t4==2:
    print(4000*n4)
elif t4==3:
    print(3000*n4)
else:
    print(2000*n4)

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)
elif t1 ==4:
    print(n1*2000)
else:
    pass
if t2 == 1:
    print(n2*6000)
elif t2 ==2:
    print(n2*4000)
elif t2 ==3:
    print(n2*3000)
elif t2 ==4:
    print(n2*2000)
else:
    pass
if t3 == 1:
    print(n3*6000)
elif t3 ==2:
    print(n3*4000)
elif t3 ==3:
    print(n3*3000)
elif t3 ==4:
    print(n3*2000)
else:
    pass
if t4 == 1:
    print(n4*6000)
elif t4 ==2:
    print(n4*4000)
elif t4 ==3:
    print(n4*3000)
elif t4 ==4:
    print(n4*2000)
else:
    pass

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:
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:
for i in range(4):
    t,n=map(int,input().split())
    if t == 1:
        print(n*6000)
    if t == 2:
        print(n*4000)
    if t == 3:
        print(n*3000)
    if t == 4:
        print(n*2000)

Submission status: Accepted

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

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)
    else:
        print(n*2000)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
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)
if t1==2:
    print(4000*n1)
if t1==3:
    print(3000*n1)
if t1==4:
    print(2000*n2)

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

Submission status: Accepted

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

ticket = {1:6000, 2:4000, 3:3000, 4:2000}
for i in range(4):
	t, n = map(int, input().split())
	print(ticket[t]*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:
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:
P = [0,6000,4000,3000,2000]
for i in range(4):
    t,n = map(int,input().split())
    print(n*P[t])

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:
list=[]
for i in range(4):
    a,b=input().split()
    a=int(a)
    b=int(b)
    if a==1:
        m=6000*b
    elif a==2:
        m=4000*b
    elif a==3:
        m=3000*b
    else:
        m=2000*b
    print(m)

Submission status: Accepted

Solution code:
def change(t) :
    if t == 1 :
        return 6000
    elif t == 2 :
        return 4000
    elif t == 3 :
        return 3000
    elif t == 4 :
        return 2000


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

print(change(t1) * n1)
print(change(t2) * n2)
print(change(t3) * n3)
print(change(t4) * n4)

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:
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:
for i in range(4):
  t, n=map(int, input().split())
  if t==1:
    print(n*6000)
  if t==2:
    print(n*4000)
  if t==3:
    print(n*3000)
  if t==4:
    print(n*2000)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,l=map(int, input().split())
b,m=map(int, input().split())
c,n=map(int, input().split())
d,o=map(int, input().split())
if a == 1 and b == 2 and c == 3 and d == 4 :
    print(l*6000)
    print(m*4000)
    print(n*3000)
    print(o*2000)
elif a == 1 and b == 2 and c == 4 and d == 3 :
    print(l*6000)
    print(m*4000)
    print(n*2000)
    print(o*3000)
elif a == 1 and b == 3 and c == 2 and d == 4 :
    print(l*6000)
    print(m*3000)
    print(n*4000)
    print(o*2000)
elif a == 1 and b == 3 and c == 4 and d == 2 :
    print(l*6000)
    print(m*3000)
    print(n*2000)
    print(o*4000)
elif a == 1 and b == 4 and c == 3 and d == 2 :
    print(l*6000)
    print(m*2000)
    print(n*3000)
    print(o*4000)
elif a == 1 and b == 4 and c == 2 and d == 3 :
    print(l*6000)
    print(m*2000)
    print(n*4000)
    print(o*3000)
elif a == 2 and b == 1 and c == 3 and d == 4 :
    print(l*4000)
    print(m*6000)
    print(n*3000)
    print(o*2000)
elif a == 2 and b == 1 and c == 4 and d == 3 :
    print(l*4000)
    print(m*6000)
    print(n*2000)
    print(o*3000)    
elif a == 2 and b == 3 and c == 1 and d == 4 :
    print(l*4000)
    print(m*3000)
    print(n*6000)
    print(o*2000)
elif a == 2 and b == 3 and c == 4 and d == 1 :
    print(l*4000)
    print(m*3000)
    print(n*2000)
    print(o*6000)
elif a == 2 and b == 4 and c == 1 and d == 3 :
    print(l*4000)
    print(m*2000)
    print(n*6000)
    print(o*3000)
elif a == 2 and b == 4 and c == 3 and d == 1 :
    print(l*4000)
    print(m*2000)
    print(n*3000)
    print(o*6000)
elif a == 3 and b == 1 and c == 2 and d == 4 :
    print(l*3000)
    print(m*6000)
    print(n*4000)
    print(o*2000)
elif a == 3 and b == 1 and c == 4 and d == 2 :
    print(l*3000)
    print(m*6000)
    print(n*2000)
    print(o*4000)
elif a == 3 and b == 2 and c == 1 and d == 4 :
    print(l*3000)
    print(m*4000)
    print(n*6000)
    print(o*2000)
elif a == 3 and b == 2 and c == 4 and d == 1 :
    print(l*3000)
    print(m*4000)
    print(n*2000)
    print(o*6000)
elif a == 3 and b == 4 and c == 1 and d == 2 :
    print(l*3000)
    print(m*2000)
    print(n*6000)
    print(o*4000)
elif a == 3 and b == 4 and c == 2 and d == 1 :
    print(l*3000)
    print(m*2000)
    print(n*4000)
    print(o*6000) 
    print(o*4000)
elif a == 4 and b == 1 and c == 2 and d == 3 :
    print(l*2000)
    print(m*6000)
    print(n*4000)
    print(o*3000)
elif a == 4 and b == 1 and c == 3 and d == 2 :
    print(l*2000)
    print(m*6000)
    print(n*3000)
    print(o*4000)
elif a == 4 and b == 2 and c == 1 and d == 3 :
    print(l*2000)
    print(m*4000)
    print(n*6000)
    print(o*3000)
elif a == 4 and b == 2 and c == 3 and d == 1 :
    print(l*2000)
    print(m*4000)
    print(n*3000)
    print(o*6000)    
elif a == 4 and b == 3 and c == 1 and d == 2 :
    print(l*2000)
    print(m*3000)
    print(n*6000)   
    print(o*4000)
elif a == 4 and b == 3 and c == 2 and d == 1 :
    print(l*2000)
    print(m*3000)
    print(n*4000)   
    print(o*6000)
else :
    pass

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())

P=0
for i in range(1,n1+1):
    if t1==1:
        P+=6000
    if t1==2:
        P+=4000
    if t1==3:
        P+=3000
    if t1==4:
        P+=2000

Q=0
for j in range(1,n2+1):
    if t2==1:
        Q+=6000
    if t2==2:
        Q+=4000
    if t2==3:
        Q+=3000
    if t2==4:
        Q+=2000
      
R=0  
for k in range(1,n3+1):
    if t3==1:
        R+=6000
    if t3==2:
        R+=4000
    if t3==3:
        R+=3000
    if t3==4:
        R+=2000
        
S=0
for l in range(1,n4+1):
    if t4==1:
        S+=6000
    if t4==2:
        S+=4000
    if t4==3:
        S+=3000
    if t4==4:
        S+=2000
        
print(P)
print(Q)
print(R)
print(S)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(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)
    elif a==4:
        print(b*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())

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

Submission status: Accepted

Solution code:
チケット = {1:6000, 2:4000, 3:3000, 4:2000}
for _ in range(4):
  t, n = map(int, input().split())
  print(チケット[t] * 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)
    else:
        print(n*2000)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
price=[6000,4000,3000,2000]
for i in range(4):
    a,b=map(int,input().split())
    print(price[a-1]*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)
    elif t == 4:
        print(2000*n)

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:
dic={1:6000,2:4000,3:3000,4:2000}

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