Problem:


Score: 100 points

Problem Statement

We held two competitions: Coding Contest and Robot Maneuver.

In each competition, the contestants taking the 3-rd, 2-nd, and 1-st places receive 100000, 200000, and 300000 yen (the currency of Japan), respectively. Furthermore, a contestant taking the first place in both competitions receives an additional 400000 yen.

DISCO-Kun took the X-th place in Coding Contest and the Y-th place in Robot Maneuver.
Find the total amount of money he earned.

Constraints

1 \leq X \leq 205

1 \leq Y \leq 205

X and Y are integers.

Input

Input is given from Standard Input in the following format:

X Y

Output

Print the amount of money DISCO-Kun earned, as an integer.

Sample Input 1

1 1

Sample Output 1

1000000

In this case, he earned 300000 yen in Coding Contest and another 300000 yen in Robot Maneuver. Furthermore, as he won both competitions, he got an additional 400000 yen.
In total, he made 300000 + 300000 + 400000 = 1000000 yen.

Sample Input 2

3 101

Sample Output 2

100000

In this case, he earned 100000 yen in Coding Contest.

Sample Input 3

4 4

Sample Output 3

0

In this case, unfortunately, he was the highest-ranked contestant without prize money in both competitions.



Sample input:
1 1


Sample output:
1000000

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
#ディスカバリーチャンネルコードコンテスト2020 A

import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(1000000)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))


x,y = LI()
if x == 3 and y == 3:
    print(200000)
elif (x == 3 and y == 2) or (x == 2 and y == 3):
    print(300000)
elif (x == 3 and y == 1) or (x == 1 and y == 3):
    print(400000)
elif x == 1 and y == 1:
    print(600000+400000)
elif x == 3 or y == 3:
    print(100000)
elif x == 2 or y == 2:
    print(200000)
elif x == 1 or y == 1:
    print(300000)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
ans=0
for i in [a,b]:
  if i==1:
    ans+=300000
  elif i==2:
    ans+=200000
  elif i==3:
    ans+=100000
print(ans)

Submission status: Wrong Answer

Solution code:
String = input().split(" ")
X = int(String[0])
Y = int(String[1])
price = [300000, 200000, 100000]
rank = [1, 2, 3]
extra = 400000
if (X in rank):
    if (Y in rank):
        if X == 1 & Y == 1:
            X = X - 1
            Y = Y - 1
            total = price[X] + price[Y] + extra
            print(total)
        elif X >= 1 & Y > 1:
            X = X - 1
            Y = Y - 1
            total = price[X] + price[Y]
            print(total)
        else:
            X = X - 1
            Y = Y - 1
            total = price[X] + price[Y]
            print(total)
    else:
        X = X - 1
        total = price[X]
        print(total)
elif Y in rank:
            Y = Y - 1
            total = price[Y]
            print(total)
else:
  total = 0
  print(total)

Submission status: Wrong Answer

Solution code:
#N = int(input())
#A = list(map(int,input().split()))
X,Y = map(int,input().split())	


#合計を求める
sum = 0

if(X == 1):
  #300,000
  sum += 300000
  if(Y == 1):
    sum += 300000
    sum += 400000
  elif(Y == 2):
    sum += 200000
  elif(Y == 3):
    sum += 100000
  else:
    pass
elif( X == 2):
  #200,000
  sum += 200000
  if(Y == 1):
    sum += 300000
    #sum += 400000
  elif(Y == 2):
    sum += 200000
  elif(Y == 3):
    sum += 100000
  else:
    pass
elif( X == 3):
  #100,000
  sum += 100000
  if(Y == 1):
    sum += 300000
    #sum += 400000
  elif(Y == 2):
    sum += 200000
  elif(Y == 3):
    sum += 100000
  else:
    pass
else:
  pass

print(sum)

Submission status: Wrong Answer

Solution code:
X,Y = map(int,raw_input().split())
if((X >= 1)and(X <= 205))and((Y >= 1)and(Y <= 205)):
    if(X == 1)and(Y == 1): print("1000000")
    elif((X == 1)and(Y == 2))or((Y == 1)and(X == 2)): print("500000")
    elif((X == 1)and(Y == 3))or((Y == 1)and(X == 3))or((X == 2)and(Y == 2)): print("400000")
    elif((X == 2)and(Y == 3))or((X == 1)and(Y > 3))or((Y == 1)and(X > 3)): print("300000")
    elif((X == 3)and(Y == 3))or((X == 2)and(Y > 3))or((Y == 2)and(X > 3)): print("200000")
    elif((X == 3)and(Y > 3))or((Y == 3)and(X > 3)): print("100000")
    elif(X > 3)and(Y > 3): print("0")

Submission status: Wrong Answer

Solution code:
String = input().split(" ")
X = int(String[0])
Y = int(String[1])
price = [300000, 200000, 100000]
rank = [1, 2, 3]
extra = 400000
if (X in rank):
    if (Y in rank):
        if X == 1 & Y == 1:
            X = X - 1
            Y = Y - 1
            total = price[X] + price[Y] + extra
            print(total)
        elif X >= 1 & Y > 1:
            X = X - 1
            Y = Y - 1
            total = price[X] + price[Y]
            print(total)
        else:
            X = X - 1
            Y = Y - 1
            total = price[X] + price[Y]
            print(total)
    else:
        X = X - 1
        total = price[X]
        print(total)
elif Y in rank:
            Y = Y - 1
            total = price[Y]
            print(total)
else:
  total = 0
  print(total)

Submission status: Wrong Answer

Solution code:
String = input().split(" ")
X = int(String[0])
Y = int(String[1])
price = [300000, 200000, 100000]
rank = [1, 2, 3]
extra = 400000
if (X in rank):
    if (Y in rank):
        if X == 1 & Y == 1:
            X = X - 1
            Y = Y - 1
            total = price[X] + price[Y] + extra
            print(total)
        elif X >= 1 & Y > 1:
            X = X - 1
            Y = Y - 1
            total = price[X] + price[Y]
            print(total)
        else:
            X = X - 1
            Y = Y - 1
            total = price[X] + price[Y]
            print(total)
    else:
        X = X - 1
        total = price[X]
        print(total)
else:
  total = 0
  print(total)

Submission status: Wrong Answer

Solution code:
String = input().split(" ")
X = int(String[0])
Y = int(String[1])
price = [300000, 200000, 100000]
rank = [1, 2, 3]
extra = 400000
if (X in rank) & (Y in rank):
    if X == 1 & Y == 1:
        X = X - 1
        Y = Y - 1
        total = price[X] + price[Y] + extra
        print(total)
    elif X >= 1 & Y > 1:
        X = X - 1
        Y = Y - 1
        total = price[X] + price[Y]
        print(total)
    else:
        X = X - 1
        total = price[X]
        print(total)
else:
  total = 0
  print(total)

Submission status: Wrong Answer

Solution code:
x, y = input().split()
s = 0
if x == 1:
    s += 300000
elif x == 2:
    s += 200000
elif x == 3:
    s += 100000
else:
    s += 0
if y == 1:
    s += 300000
elif y == 2:
    s += 200000
elif y == 3:
    s += 100000
else:
    s += 0
if x == 1 and y == 1:
    s += 400000
print(s)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split(' '))
if X == 1 and Y == 1:
    print(1000000)
elif X == 1:
    if Y == 2:
        print(500000)
    elif Y == 3:
        print(400000)
    else:
        print(300000)
elif X == 2:
    if Y == 1:
        print(500000)
    if Y == 2:
        print(400000)
    elif Y == 3:
        print(300000)
    else:
        print(200000)
elif X == 3:
    if Y == 1:
        print(400000)
    if Y == 2:
        print(300000)
    elif Y == 3:
        print(200000)
    else:
        print(100000)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
firstprize =  300000
secondprize = 200000
thirdprize = 100000
result = 0

if (a == 1 and b == 1):
    result = firstprize + firstprize + 400000
    print(result)
elif ((a == 1 and b == 2) or (a == 2 and b == 1) ):
    result = firstprize + secondprize 
    print(result)
elif ((a == 1 and b == 3) or a == 3 and b == 1):
    result = firstprize + thirdprize
    print(result)
elif ((a > 3 and b == 1) or (a == 1 and b > 3)):
    result = firstprize
    print(result)
elif ((a > 3 and b == 2) or (a == 2 and b > 3)):
    result = secondprize
    print(result)
elif (((a > 3 and b == 3) or (a == 3 and b > 3))):
    result = thirdprize
    print(result)
elif ((a == 1) and (b == 1)):
    result = firstprize + firstprize + 400000
    print(result)
elif ((a == 2) and ( a == 2)):
    result = secondprize + secondprize
    print(result)
elif ((a == 3) and (b == 3)):
    result = thirdprize + thirdprize
    print(result)
elif (a == 0 or b == 0):
    raise Exception('Enter greater than 0')
else:
    result = 0
    print(result)

Submission status: Wrong Answer

Solution code:
x, y = input().split()
price = 0
try:
    if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
        if int(x) == 1 or int(y) == 1:
            price += 400000
        if int(x) == 1:
            price += 300000
        elif int(x) == 2:
            price += 200000
        elif int(x) == 3:
            price += 100000
        if int(y) == 1:
            price += 300000
        elif int(y) == 2:
            price += 200000
        elif int(y) == 3:
            price += 100000

    print(price)
except:
    pass

Submission status: Wrong Answer

Solution code:
x, y = input().split()
price = 0
try:
    if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
        if int(x) == 1 or int(y) == 1:
            price += 400000
        if int(x) == 1:
            price += 300000
        elif int(x) == 2:
            price += 200000
        elif int(x) == 3:
            price += 100000
        if int(y) == 1:
            price += 300000
        elif int(y) == 2:
            price += 200000
        elif int(y) == 3:
            price += 100000

    print(price)
except:
    print(price)

Submission status: Wrong Answer

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

ttl=0
if(x>3 and y>3):
  ttl=0
else:
  for i in range(1,4):
    ttl=(4-i)*100000
    for j in range(1,4):
        ttl=ttl+(4-j)*100000
        break
  if ttl==600000:
    ttl=ttl+400000
print(ttl)

Submission status: Wrong Answer

Solution code:
x, y = input().split()
price = 0
if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
    if int(x) == 1 or int(y) == 1:
        price += 400000
    if int(x) == 1:
        price += 300000
    elif int(x) == 2:
        price += 200000
    elif int(x) == 3:
        price += 100000
    if int(y) == 1:
        price += 300000
    elif int(y) == 2:
        price += 200000
    elif int(y) == 3:
        price += 100000

print(price)

Submission status: Wrong Answer

Solution code:
input_number = input()
input_list = input_number.split()
coding_contest_rank = int(input_list[0])
robot_maneuver_rank = int(input_list[1])

if coding_contest_rank == 1:
    coding_contest_money = 300000
if robot_maneuver_rank == 1:
    robot_maneuver_money = 300000
if coding_contest_rank == 2:
    coding_contest_money = 200000
if robot_maneuver_rank == 2:
    robot_maneuver_money = 200000
if coding_contest_rank == 3:
    coding_contest_money = 100000
if robot_maneuver_rank == 3:
    robot_maneuver_money = 100000
if coding_contest_rank > 3:
    coding_contest_money = 0
if robot_maneuver_rank > 3:
    robot_maneuver_money = 0
elif coding_contest_rank == 1 and robot_maneuver_rank == 1:
    total_money = coding_contest_money + robot_maneuver_money + 400000
    print(total_money)

print(coding_contest_money + robot_maneuver_money)

Submission status: Wrong Answer

Solution code:
def main():
    x,y=list(map(int,input().split(" ")))
    ans=0
    if x==1 and y==1:
        print(300000+300000+400000)
    else:
        if x==1:
            ans=300000
        elif x==2:
            ans=200000
        else:
            ans=100000
        if y==1:
            ans+=300000
        elif y==2:
            ans+=200000
        else:
            ans+=100000
        print(ans)

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

sumPriz = 0

if X == 1:
    sumPriz += 300000
elif X == 2:
    200000
elif X == 3:
    100000

if Y == 1:
    sumPriz += 300000
    if X == 1:
        sumPriz += 400000
elif Y == 2:
    200000
elif Y == 3:
    100000

print(sumPriz)

Submission status: Wrong Answer

Solution code:
X,Y = map(int,raw_input().split())
if((X >= 1)&(X <= 205))&((Y >= 1)&(Y <= 205)):
    if(X == 1)and(Y == 1): print("1000000")
    elif((X == 1)and(Y == 2))or((Y == 1)and(X == 2)): print("500000")
    elif((X == 1)and(Y == 3))or((Y == 1)and(X == 3))or((X == 2)and(Y == 2)): print("400000")
    elif((X == 2)and(Y == 3))or((X == 1)and(Y > 3))or((Y == 1)and(X > 3)): print("300000")
    elif((X == 3)and(Y == 3))or((X == 2)and(Y > 3))or((Y == 2)and(X > 3)): print("200000")
    elif((X == 3)and(Y > 3))or((Y == 3)and(X > 3)): print("100000")
    elif(X > 3)and (Y > 3): print("0")
else: print("0")

Submission status: Wrong Answer

Solution code:
X,Y = map(int,raw_input().split())
if((X >= 1)&(X <= 205))&((Y >= 1)&(Y <= 205)):
    if(X == 1)and(Y == 1): print("1000000")
    elif((X == 1)and(Y == 2))or((Y == 1)and(X == 2)): print("500000")
    elif((X == 1)and(Y == 3))or((Y == 1)and(X == 3))or((X == 2)&(Y == 2)): print("400000")
    elif((X == 2)and(Y == 3))or((X == 1)and(Y > 3))or((Y == 1)and(X > 3)): print("300000")
    elif((X == 3)and(Y == 3))or((X == 2)and(Y > 3))or((Y == 2)and(X > 3)): print("200000")
    elif((X == 3)and(Y > 3))or((Y == 3)and(X > 3)): print("100000")
    elif(X > 3)and (Y > 3): print("0")
else: print("0")

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

if X == 1 and Y == 1:
    print(1000000)

elif (X == 1 and Y == 2) or (X == 2 and Y == 1):
    print(500000)

elif (X == 1 and Y == 3) or (X == 3 and Y == 1) or (X == 2 and Y == 2):
    print(400000)

elif (X == 1 and Y >= 4) or (X >= 4 and Y == 1) or (X == 2 and Y == 3) or (X == 3 and Y == 2):
    print(300000)

elif (X == 2 and Y >= 4) or (X >= 4 and Y == 2) or (X == 3 and Y == 3):
    print(200000)

elif (X == 3 and Y >= 4) or (X >= 3 and Y == 2):
    print(100000)

else:
    print(0)

Submission status: Wrong Answer

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

for i in range(len(a)):
  if a[i] == 1:
    a[i] = 300000
  elif a[i] == 2:
    a[i] = 200000
  elif a[i] == 3:
    a[i] = 100000
  else:
    a[i] = 0
    
if a[0] == 1 and a[1] == 1:
  p = a[0] + a[1] + 400000
else:
  p = a[0] + a[1]
      
print(p)

Submission status: Wrong Answer

Solution code:
a = input().split()
#print(a)
x = a[0]
y = a[1]
def h(x,y):
    d = dict()
    d = {'1':300000,'2':200000,'3':100000}
    if x=='1' and y =='1':
        return 1000000
    res = 0
    res = d.get(x,0) + d.get(y,0)
    print(int(res))
h(x,y)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
s=0
g=0
if a==1:
  s=300000
elif a==2:
  s=200000
elif a==3:
  s=100000
else:
  pass
if b==1:
  g=300000
elif b==2:
  g=200000
elif b==3:
  g=100000
else:
  pass
if a==1 and b==2:
  print(g+s+400000)
else:
  print(s+g)

Submission status: Wrong Answer

Solution code:
code,implement = input().split(" ")

def prize_dict(rank):
    if rank == "1":
        prize = 300000
    elif rank == "2":
        prize = 200000
    elif rank == "3":
        prize = 100000
    else:
        prize = 0
    return prize


if code == "1" and implement == "1":
    prize = 400000
else:
    prize = prize_dict(code)+prize_dict(implement)
print(prize)

Submission status: Wrong Answer

Solution code:
p=[int(x) for x in input().split()]
l=[3000,2000,1000]
s=0
if p[0]==1 and p[1]==1:
    print(10000)
else:
    for i in [0,1]:
        if p[i]==1:
            s=s+l[0]
        elif p[i]==2:
            s=s+l[1]
        elif p[i]==3:
            s=s+l[2]
    print(s)

Submission status: Wrong Answer

Solution code:
X,Y = map(int,raw_input().split())
if((X >= 1)&(X <= 205))&((Y >= 1)&(Y <= 205)):
    if(X == 1)and(Y == 1): print("1000000")
    elif((X == 1)and(Y == 2))or((Y == 1)and(X == 2)): print("500000")
    elif((X == 1)and(Y == 3))or((Y == 1)and(X == 3))or((X == 2)&(Y == 2)): print("400000")
    elif((X == 2)and(Y == 3))or((X == 1)and(Y > 3))or((Y == 1)&(X > 3)): print("300000")
    elif((X == 3)and(Y == 3))or((X == 2)and(Y > 3))or((Y == 2)&(X > 3)): print("200000")
    elif((X == 3)and(Y > 3))or((Y == 3)and(X > 3)): print("100000")
    else: print("0")

Submission status: Wrong Answer

Solution code:
X,Y = map(int,raw_input().split())
if((X >= 1)&(X <= 205))&((Y >= 1)&(Y <= 205)):
    if(X == 1)and(Y == 1): print("1000000")
    elif((X == 1)and(Y == 2))or((Y == 1)and(X == 2)): print("500000")
    elif((X == 1)and(Y == 3))or((Y == 1)and(X == 3))or((X == 2)&(Y == 2)): print("400000")
    elif((X == 2)and(Y == 3))or((X == 1)and(Y > 3))or((Y == 1)&(X > 3)): print("300000")
    elif((X == 3)and(Y == 3))or((X == 2)and(Y > 3))or((Y == 2)&(X > 3)): print("200000")
    elif((X == 3)and(Y > 3))or((Y == 3)and(X > 3)): print("100000")
    else: print("0")
else: print("0")

Submission status: Wrong Answer

Solution code:
p=[int(x) for x in input().split()]
l=[1000,2000,3000]
s=0
if p[0]==1 and p[1]==1:
    print(10000)
else:
    for i in [0,1]:
        if p[i]==1:
            s=s+l[0]
        elif p[i]==2:
            s=s+l[1]
        elif p[i]==3:
            s=s+l[2]
    print(s)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
if x==1:
  if y==1:
    print(1000000)
  elif y==2:
    print(500000)
  elif y==3:
    print(400000)
  else:
    print(300000)
elif x==2:
  if y==1:
    print(500000)
  elif y==2:
    print(400000)
  elif y==3:
    print(300000)
  else:
    print(200000)
elif x==3:
  if y==1:
    print(400000)
  elif y==2:
    print(300000)
  elif y==3:
    print(200000)
  else:
    print(100000)
else:
  print(0)

Submission status: Wrong Answer

Solution code:
X, Y = map(int,input().split())

p = []

if X == 1 and Y == 1:
  p.append(400000)
elif X == 1:
  p.append(300000)
elif X == 2:
  p.append(200000)
elif X == 3:
  p.append(100000)
if Y == 1:
  p.append(300000)
elif Y == 2:
  p.append(200000)
elif Y == 3:
  p.append(100000)
  
ans = sum(p)
print(ans)

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
  x, y = map(int, input().split())
  priceX = priceY = 0
  
  print(y)
  if(x == 1):
    priceX = 300000
  elif(x == 2):
    priceX = 200000
  elif(x == 3):
    priceX = 100000
  else:
  	priceX = 0

  if(y == 1):
    priceY = 300000
  elif(y == 2):
  	priceY = 200000
  elif(y == 3):
   	priceY = 100000
  else:
   	priceY = 0

  print(priceX)
  print(priceY)
  if(x == 1 and y == 1):
   	print(400000 + priceX + priceY)
  else:
   	print(priceX + priceY)

Submission status: Wrong Answer

Solution code:
X, Y = map(int,input().split())

p = []

if X == 1 and Y == 1:
  p.append(400000)
elif X == 1:
  p.append(300000)
elif X == 2:
  p.append(200000)
elif X == 3:
  p.append(100000)
elif Y == 1:
  p.append(300000)
elif Y == 2:
  p.append(200000)
elif Y == 3:
  p.append(100000)

ans = sum(p)
print(ans)

Submission status: Wrong Answer

Solution code:
a = input().split()
#print(a)
x = a[0]
y = a[1]
def h(x,y):
    d = dict()
    d = {'1':300000,'2':200000,'3':100000}
    if x=='1' and y =='2':
        return 1000000
    res = 0
    res = d.get(x,0) + d.get(y,0)
    print(int(res))
h(x,y)

Submission status: Wrong Answer

Solution code:
a = input().split()
print(a)
x = a[0]
y = a[1]
def h(x,y):
    d = dict()
    d = {'1':300000,'2':200000,'3':100000}
    if x=='1' and y =='2':
        return 1000000
    res = 0
    res = d.get(x,0) + d.get(y,0)
    print(int(res))
h(x,y)

Submission status: Wrong Answer

Solution code:
a = input().split()
print(a)
x = a[0]
y = a[1]
def h(x,y):
    d = dict()
    d = {'1':300000,'2':200000,'3':100000}
    if x=='1' and y =='2':
        return 1000000
    res = 0
    res = d.get(x,0) + d.get(y,0)
    print(res)
h(x,y)

Submission status: Wrong Answer

Solution code:
X,Y=map(int,input().split())

prize=0

if X==1:
    prize+=300000
    if Y==1:
        prize+=700000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass
elif X==2:
    prize+=200000
    if Y==1:
        prize+=300000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass
elif X==3:
    prize+=100000
    if Y==1:
        prize+=300000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass
else:
    prize+=100000
    if Y==1:
        prize+=300000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass

print(prize)

Submission status: Wrong Answer

Solution code:
x, y = input().split()
addi = 0
price = 0
if int(x) == 1 or int(y) == 1:
    addi = 400000
if int(x) == 1:
    price += 300000
elif int(x) == 2:
    price += 200000
elif int(x) == 3:
    price += 100000
if int(y) == 1:
    price += 300000
elif int(y) == 2:
    price += 200000
elif int(y) == 3:
    price += 100000

print(price + addi)

Submission status: Wrong Answer

Solution code:
a = 0
for x in map(int, input().split()):
    if x == 1:
        a += 300000
    elif x == 2:
        a += 200000
    elif x == 3:
        a += 300000
if a == 600000:
    a = 1000000
print(a)

Submission status: Wrong Answer

Solution code:
X, Y = map(int,input().split())

point = 0

if X == 1 and Y == 1:
  point = 1000000
elif X == 1:
  point += 300000
elif X == 2:
  point += 200000
elif X == 3:
  point += 100000
elif Y == 1:
  point += 300000
elif Y == 2:
  point += 200000
elif Y == 3:
  point += 100000

print(point)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
first = 300000
second = 200000 
third = 100000
if (X==1 and Y==1):
    print(first+first+40000)
elif (X==2 and Y==2):
    print(second+second)
elif (X==3 and Y==3):
    print(third+third)
elif ((X==1 and Y==2) or(X==2 and Y==1)):
    print(first+second)
elif ((X==1 and Y==3) or(X==3 and Y==1) ):
     print(first+third)
elif ((X==2 and Y==3) or(X==3 and Y==2) ):
    print(second+third)
elif ((X==3 and Y>3) or(X>3and Y==3) ):
    print(third)
elif ((X==2 and Y>3) or(X>3 and Y==2) ):
    print(second)
elif ((X==1 and Y>3) or(X>3 and Y==1) ):
    print(first)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
money = 0
if a == 1:
    money += 300000
    if b == 2:
        money  += 200000
    elif b ==3:
        money  += 100000

    elif b == 1:
        money += 700000

elif a == 2:
    money += 200000
    if b == 2:
        money += 200000
    elif b == 3:
        money += 100000
    elif b ==1:
        money += 300000

elif a == 3:
    money += 100000
    if b == 2:
        money += 200000
    elif b == 3:
        money += 100000
    elif b == 1:
        money += 300000
elif a ==1 and b ==1:
    money += 1000000
print(money)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
money = 0
if a == 1:
    money += 300000
    if b == 2:
        money  += 200000
    elif b ==3:
        money  += 100000

    elif b == 1:
        money += 700000

elif a == 2:
    money += 200000
    if b == 2:
        money += 200000
    elif b == 3:
        money += 100000
    elif b ==1:
        money += 300000

elif a == 3:
    money += 200000
    if b == 2:
        money += 200000
    elif b == 3:
        money += 100000
    elif b == 1:
        money += 300000
elif a ==1 and b ==1:
    money += 1000000
print(money)

Submission status: Wrong Answer

Solution code:
x, y = input().split()
addi = 0
price = 0
if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
    if int(x) == 1 or int(y) == 1:
        addi = 400000
    if int(x) == 1:
        price += 300000
    elif int(x) == 2:
        price += 200000
    elif int(x) == 3:
        price += 100000
    if int(y) == 1:
        price += 300000
    elif int(y) == 2:
        price += 200000
    elif int(y) == 3:
        price += 100000

print(price + addi)

Submission status: Wrong Answer

Solution code:
s=0
for i in map(int, input().split()):
    if i==1:
        s+=300000
    elif i==2:
        s+200000
    elif i==3:
        s+=100000
if s==600000:
    s+=400000
print(s)

Submission status: Wrong Answer

Solution code:
# input x, y compitition
x, y = input().split()
addi = 0
price = 0
try:
    if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
        if int(x) == 1 or int(y) == 1:
            addi = 400000
        if int(x) == 1:
            price += 300000
        elif int(x) == 2:
            price += 200000
        elif int(x) == 3:
            price += 100000
        if int(y) == 1:
            price += 300000
        elif int(y) == 2:
            price += 200000
        elif int(y) == 3:
            price += 100000

    print(price + addi)
except:
    print(price + addi)

Submission status: Wrong Answer

Solution code:
a = 0
for x in map(int, input().split()):
    if x == 1:
        a += 300000
    elif x == 2:
        a += 200000
    elif x == 3:
        a += 300000
if x == 600000:
    s = 1000000
print(x)

Submission status: Wrong Answer

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

if x == 1 or y == 1:
	r += 300000
if x == 2 or y == 2:
	r += 200000
if x == 3 or y == 3:
	r += 100000	
if x == 1 and y == 1:
	r = 1000000

print(r)

Submission status: Wrong Answer

Solution code:
# input x, y compitition
x, y = input().split()
add = 0
price = 0
try:
    if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
        if int(x) == 1 or int(y) == 1:
            add = 400000
        if int(x) == 1:
            price += 300000
        elif int(x) == 2:
            price += 200000
        elif int(x) == 3:
            price += 100000
        if int(y) == 1:
            price += 300000
        elif int(y) == 2:
            price += 200000
        elif int(y) == 3:
            price += 100000

    print(price + add)
except:
    print(price + add)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
first = 300000
second = 200000
third = 100000
if (X==1 and Y==1):
    print(first+first+40000)
elif (X==2 and Y==2):
    print(second+second)
elif (X==3 and Y==3):
    print(third+third)
elif ((X==1 and Y==2) or(X==2 and Y==1)):
    print(first+second)
elif ((X==1 and Y==3) or(X==3 and Y==1) ):
     print(first+third)
elif ((X==2 and Y==3) or(X==3 and Y==2) ):
    print(second+third)
elif ((X==3 and Y>3) or(X>3and Y==3) ):
    print(third)
elif ((X==2 and Y>3) or(X>3 and Y==2) ):
    print(second)
elif ((X==1 and Y>3) or(X>3 and Y==1) ):
    print(first)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
r=[300000, 200000, 100000]
ra=0
if a+b==2:
  print('1000000')
else:
    if a<4:
      ra += r[a-1]
    if b<4:
      ra += r[b-1]
 
print(ra)

Submission status: Wrong Answer

Solution code:
import math#数学的計算はこれでいける。普通に0.5乗しても計算可能
N = 1
x, y = [0]*N, [0]*N#N個の空のリストを作成
l = list(range(N))#範囲がNのリストを作成する
sum=0
#print(x[0])

for i in range(N):
  x[i], y[i] = map(int, input().split())

if x[0] <= 3:
   sum=sum+10000*(4-x[0])
else:
    pass

if y[0]<= 3:
   sum=sum+10000*(4-y[0])
else:
    pass

if x[0]==1 and y[0]==1:
    sum=sum+40000

else:
    pass

print(sum)

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
r=[300000, 200000, 100000]
ra=0
if a+b==2:
  print('1000000')
else:
    if a<3:
      ra += r[a]
    if b<3:
      ra += r[b]
 
print(ra)

Submission status: Wrong Answer

Solution code:
x,y=(int(x) for x in input().split())
b = 0
if x == 1:
    b += 300000
elif x == 2:
    b += 200000
elif x == 3:
    b += 100000
elif y == 1:
    b += 300000
elif y == 2:
    b += 200000
elif y == 3:
    b += 100000
elif x == 1 and y == 1:
    b += 400000
else:
    pass
print(b)

Submission status: Wrong Answer

Solution code:
x,y = (int(x) for x in input().split())

if x>3 & y>3:
    print(0)
elif x<=3 & y<=3:
    if x+y == 2:
        print(1000000)
    elif x+y == 3:
        print(500000)
    elif x+y == 4:
        print(400000)
    elif x+y == 5:
        print(300000)
    else:
        print(200000)
else:
    z = min(x,y)
    if z == 1:
        print(300000)
    elif z == 2:
        print(200000)
    else:
        print(100000)

Submission status: Wrong Answer

Solution code:
x, y = input().split()
add = 0
price = 0
try:
    if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
        if int(x) == 1 or int(y) == 1:
            add = 400000
        if int(x) == 1:
            price += 300000
        elif int(x) == 2:
            price += 200000
        elif int(x) == 3:
            price += 100000
        if int(y) == 1:
            price += 300000
        elif int(y) == 2:
            price += 200000
        elif int(y) == 3:
            price += 100000

    print(price + add)
except:
    print(price + add)

Submission status: Wrong Answer

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

if x == 1 or y == 1:
	r += 300000
if x == 2 or y == 2:
	r += 200000
if x == 3 or y == 3:
	r += 100000	
if x == 1 and y == 1:
	r = 1000000
print(r)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
first = 300000
second = 200000
third = 100000
if (X==1 and Y==1):
    print(first+first+40000)
elif (X==2 and Y==2):
    print(second+second)
elif (X==3 and Y==3):
    print(third+third)
elif (X==1 and Y==2 or(X==2 and Y==1)):
    print(first+second)
elif ((X==1 and Y==3) or(X==3 and Y==1) ):
     print(first+third)
elif ((X==2 and Y==3) or(X==3 and Y==2) ):
    print(second+third)
elif ((X==3 and Y>3) or(X>3and Y==3) ):
    print(third)
elif ((X==2 and Y>3) or(X>3 and Y==2) ):
    print(second)
elif ((X==1 and Y>3) or(X>3 and Y==1) ):
    print(first)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
if X > 3 and Y > 3:
    print(0)
elif (X == 3 and Y > 3) or (Y == 3 and X > 3):
    print(100000)
elif (X == 3 and Y == 3) or (X == 2 and Y > 3) or (Y == 2 and X > 3):
    print(200000)
elif X == 1 and Y == 1:
    print(1000000)
elif (X == 1 and Y == 3) or (Y == 1 and X == 3) or (Y == 2 and X == 2):
    print(400000)
elif (X == 2 and Y == 1) or (Y == 2 and X == 1):
    print(500000)
else:
    print(400000)

Submission status: Wrong Answer

Solution code:
# Award calculation
def winning_award(coding_contest, robot_maneuver):
  award = 0
  if coding_contest == 1:
    award = 300000
  elif coding_contest == 2:
    award = 200000
  elif coding_contest == 3:
    award = 100000

  if robot_maneuver == 1:
    award += 300000
  elif robot_maneuver == 2:
    award += 200000
  elif robot_maneuver == 3:
    award += 100000

  if coding_contest ==1 & robot_maneuver == 1:
    award += 400000

  print(award)

winning_award(3,101)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
if X > 3 and Y > 3:
    print(0)
elif (X == 3 and Y > 3) or (Y == 3 and X > 3):
    print(100000)
elif (X == 3 and Y == 3) or (X == 2 and Y > 3) or (Y == 2 and X > 3):
    print(200000)
elif X == 1 and Y == 1:
    print(1000000)
elif (X == 1 and Y == 3) or (Y == 1 and X == 3) or (Y == 2 and X == 2):
    print(400000)
elif (X == 2 and Y == 3) or (Y == 2 and X == 3):
    print(500000)
else:
    print(400000)

Submission status: Wrong Answer

Solution code:
X, Y = map(int,input().split())
AnswerX = 0
AnswerY = 0
AnswerW = 0
if X*Y == 1:
  AnswerW = 400000
if X == 1:
  AnswerX= 300000
elif X==2:
  AnswerX = 20000
elif X==3:
  AnswerX = 10000
if Y == 1:
  AnswerY= 300000
elif Y==2:
  AnswerY = 20000
elif Y==3:
  AnswerY = 10000
  
Answer = AnswerX + AnswerY + AnswerW
print(Answer)