problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k ⌀ | fixed_code stringlengths 12 526k ⌀ | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M ⌀ | fixed_submission_id int64 2 1.54M ⌀ | user_id stringlengths 10 10 ⌀ | language stringclasses 9
values |
|---|---|---|---|---|---|---|---|
p02853 | x,y=map(int,input().split())
if x==y==1:
print(1000000)
A=[300000,200000,100000]+[0]*1000
print(A[x-1]+A[y-1])
| x,y=map(int,input().split())
if x==y==1:
print(1000000);exit()
A=[300000,200000,100000]+[0]*1000
print(A[x-1]+A[y-1])
| [] | 657,603 | 657,604 | u023229441 | python |
p02853 | x,y = map(int,input().split())
if x == 1 and y == 1:
print(1000000)
elif x == 1 and y == 2 or x == 2 or y == 1:
print(500000)
elif x == 2 and y == 2 or x == 3 and y == 1 or x == 1 or y == 3:
print(400000)
elif x == 3 and y == 2 or x == 2 and y == 3 or x == 1 and y >= 4 or x >= 4 and y == 1:
print(300000)
elif x == 3 and y == 3 or x == 2 and y >= 4 or x >= 4 and y == 2:
print(200000)
elif x == 3 and y >= 4 or x >= 4 and y == 3:
print(100000)
else:
print(0) | 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 == 2 and y == 2 or x == 3 and y == 1 or x == 1 and y == 3:
print(400000)
elif x == 3 and y == 2 or x == 2 and y == 3 or x == 1 and y >= 4 or x >= 4 and y == 1:
print(300000)
elif x == 3 and y == 3 or x == 2 and y >= 4 or x >= 4 and y == 2:
print(200000)
elif x == 3 and y >= 4 or x >= 4 and y == 3:
print(100000)
else:
print(0) | [
"control_flow.branch.if.condition.change"
] | 657,609 | 657,610 | u397953026 | python |
p02853 | X, Y = map(int, input().split())
def solver(X, Y):
if X == 1 and Y == 1:
print(1000000)
return
a = 0
if X == 1:
a += 300000
if X == 2:
a += 200000
if X == 3:
a += 100000
if Y == 1:
a += 300000
if Y == 2:
a += 200000
if Y == 3:
a += 200000
print(a)
solver(X, Y) | X, Y = map(int, input().split())
def solver(X, Y):
if X == 1 and Y == 1:
print(1000000)
return
a = 0
if X == 1:
a += 300000
if X == 2:
a += 200000
if X == 3:
a += 100000
if Y == 1:
a += 300000
if Y == 2:
a += 200000
if Y == 3:
a += 100000
print(a)
solver(X, Y) | [
"literal.number.integer.change"
] | 657,611 | 657,612 | u642012866 | python |
p02853 | x,y = map(int,input().split())
a = [0]*210
a[:3] = [300000, 200000, 100000]
if x == y and x == 1:
print(400000)
else:
print(a[x-1] + a[y-1])
| x,y = map(int,input().split())
a = [0]*210
a[:3] = [300000, 200000, 100000]
if x == y and x == 1:
print(1000000)
else:
print(a[x-1] + a[y-1])
| [
"literal.number.integer.change",
"call.arguments.change",
"io.output.change"
] | 657,613 | 657,614 | u624613992 | python |
p02853 | a,b=map(int,input().split())
lst={0:0,1:300000,2:200000,3:1000000}
if a>3:
x=0
else:
x=a
if b>3:
y=0
else:
y=b
if x==1 and y==1:
ans=1000000
else :
ans=lst[x]+lst[y]
print(ans) | a,b=map(int,input().split())
lst={0:0,1:300000,2:200000,3:100000}
if a>3:
x=0
else:
x=a
if b>3:
y=0
else:
y=b
if x==1 and y==1:
ans=1000000
else :
ans=lst[x]+lst[y]
print(ans) | [
"literal.number.integer.change",
"assignment.value.change"
] | 657,621 | 657,622 | u123745130 | python |
p02853 | a,b=map(int,input().split())
lst={0:0,1:300000,2:200000,3:100000}
if a>4:
x=0
else:
x=a
if b>4:
y=0
else:
y=b
if x==1 and y==1:
ans=1000000
else :
ans=lst[x]+lst[y]
print(ans) | a,b=map(int,input().split())
lst={0:0,1:300000,2:200000,3:100000}
if a>3:
x=0
else:
x=a
if b>3:
y=0
else:
y=b
if x==1 and y==1:
ans=1000000
else :
ans=lst[x]+lst[y]
print(ans) | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 657,623 | 657,622 | u123745130 | python |
p02853 | a,b=map(int,input().split())
lst={0:0,1:300000,2:200000,3:1000000}
if a>4:
x=0
else:
x=a
if b>4:
y=0
else:
y=b
if x==1 and y==1:
ans=1000000
else :
ans=lst[x]+lst[y]
print(ans) | a,b=map(int,input().split())
lst={0:0,1:300000,2:200000,3:100000}
if a>3:
x=0
else:
x=a
if b>3:
y=0
else:
y=b
if x==1 and y==1:
ans=1000000
else :
ans=lst[x]+lst[y]
print(ans) | [
"literal.number.integer.change",
"assignment.value.change",
"control_flow.branch.if.condition.change"
] | 657,624 | 657,622 | u123745130 | python |
p02853 | x,y=map(int, input())
coin=0
if x==1 and y==1:
coin+=400000
if x==1:
coin+=300000
if y==1:
coin+=300000
if x==2:
coin+=200000
if y==2:
coin+=200000
if x==3:
coin+=100000
if y==3:
coin+=100000
print(coin) | x,y=map(int, input().split())
coin=0
if x==1 and y==1:
coin+=400000
if x==1:
coin+=300000
if y==1:
coin+=300000
if x==2:
coin+=200000
if y==2:
coin+=200000
if x==3:
coin+=100000
if y==3:
coin+=100000
print(coin)
| [
"call.add"
] | 657,631 | 657,632 | u088488125 | python |
p02853 | def p(n):
if n == 1:
return 300000
elif n == 2:
return 200000
elif n == 3:
return 300000
else:
return 0
x, y = map(int, input().split())
ans = 0
if x == y == 1:
ans += 400000
ans += p(x) + p(y)
print(ans)
| def p(n):
if n == 1:
return 300000
elif n == 2:
return 200000
elif n == 3:
return 100000
else:
return 0
x, y = map(int, input().split())
ans = 0
if x == y == 1:
ans += 400000
ans += p(x) + p(y)
print(ans)
| [
"literal.number.integer.change",
"function.return_value.change"
] | 657,635 | 657,636 | u654240084 | python |
p02853 | x, y = map(int, input().split())
A, B = [0] * 206, [0] * 206
A[1] = 300000
A[2] = 200000
A[3] = 100000
B[1] = 300000
B[2] = 300000
B[3] = 300000
if x == 1 and y == 1:
print(A[x] + B[y] + 400000)
else:
print(A[x] + B[y]) | x, y = map(int, input().split())
A, B = [0] * 206, [0] * 206
A[1] = 300000
A[2] = 200000
A[3] = 100000
B[1] = 300000
B[2] = 200000
B[3] = 100000
if x == 1 and y == 1:
print(A[x] + B[y] + 400000)
else:
print(A[x] + B[y]) | [
"literal.number.integer.change",
"assignment.value.change"
] | 657,637 | 657,638 | u627803856 | python |
p02853 | a = list(map(int,input().split()))
ans = 0
for v in a:
if v == 1:
ans += 300000
elif v == 2:
ans += 200000
else:
ans += 100000
if sum(a) == 2:
ans += 400000
print(ans) | a = list(map(int,input().split()))
ans = 0
for v in a:
if v == 1:
ans += 300000
elif v == 2:
ans += 200000
elif v == 3:
ans += 100000
if sum(a) == 2:
ans += 400000
print(ans) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 657,639 | 657,640 | u143051858 | python |
p02853 | X, Y = map(int, input().split())
price = [0, 300000, 200000, 100000]
ans = price[X] + price[Y] + 400000*(X == Y == 1)
print(ans) | X, Y = map(int, input().split())
price = [0, 300000, 200000, 100000] + [0]*300
ans = price[X] + price[Y] + 400000*(X == Y == 1)
print(ans) | [
"assignment.change"
] | 657,648 | 657,649 | u922449550 | python |
p02853 | X,Y=map(int, input().split())
v1 = [300000, 200000, 100000]
v2 = [300000, 200000, 100000]
x = 0
y = 0
if X <= 3:
x = int(v1[X-1])
if Y <= 3:
y = int(v2[Y-1])
if (X==1 & Y==1):
print(int(x + y + 400000))
else:
print(int(x + y)) | X,Y=map(int, input().split())
v1 = [300000, 200000, 100000]
v2 = [300000, 200000, 100000]
x = 0
y = 0
if X <= 3:
x = int(v1[X-1])
if Y <= 3:
y = int(v2[Y-1])
if ((X==1) & (Y==1)):
print(int(x + y + 400000))
else:
print(int(x + y)) | [
"control_flow.branch.if.condition.change"
] | 657,652 | 657,653 | u019355060 | python |
p02853 | X, Y = map(int, input().split())
ans = 0
for z in [X,Y]:
if z == 3:
ans += 10**5
elif z == 2:
ans += 2*10**5
elif z == 1:
ans += 3*10**5
if X == Y:
ans += 4*10**5
print(ans) | X, Y = map(int, input().split())
ans = 0
for z in [X,Y]:
if z == 3:
ans += 10**5
elif z == 2:
ans += 2*10**5
elif z == 1:
ans += 3*10**5
if X == Y == 1:
ans += 4*10**5
print(ans)
| [
"control_flow.branch.if.condition.change"
] | 657,654 | 657,655 | u086503932 | python |
p02853 | x = list(map(int, input().split()))
top_count = 0
ans = 0
for i in x:
if i == 1:
ans += 300000
top_count += 1
elif i == 2:
ans += 200000
elif i == 3:
ans += 100000
if top_count != 0:
print(ans + 400000)
else:
print(ans) | x = list(map(int, input().split()))
top_count = 0
ans = 0
for i in x:
if i == 1:
ans += 300000
top_count += 1
elif i == 2:
ans += 200000
elif i == 3:
ans += 100000
if top_count == 2:
print(ans + 400000)
else:
print(ans) | [] | 657,660 | 657,661 | u068142202 | python |
p02853 | x = list(map(int, input().split()))
top_count = 0
ans = 0
for i in x:
if i == 1:
ans += 300000
top_count += 1
elif i ==2:
ans += 200000
elif i == 3:
ans += 100000
if top_count != 0:
print(ans + 400000)
else:
print(ans) | x = list(map(int, input().split()))
top_count = 0
ans = 0
for i in x:
if i == 1:
ans += 300000
top_count += 1
elif i == 2:
ans += 200000
elif i == 3:
ans += 100000
if top_count == 2:
print(ans + 400000)
else:
print(ans) | [] | 657,662 | 657,661 | u068142202 | python |
p02853 | X, Y = map(int, input().split())
ans = 0
if X == 1 and Y == 1:
asn = 1000000
else:
if X == 1:
ans += 300000
elif X == 2:
ans += 200000
elif X == 3:
ans += 100000
if Y == 1:
ans += 300000
elif Y == 2:
ans += 200000
elif Y ==3:
ans += 100000
print(ans) | X, Y = map(int, input().split())
ans = 0
if X == 1 and Y == 1:
ans = 1000000
else:
if X == 1:
ans += 300000
elif X == 2:
ans += 200000
elif X == 3:
ans += 100000
if Y == 1:
ans += 300000
elif Y == 2:
ans += 200000
elif Y ==3:
ans += 100000
print(ans) | [
"assignment.variable.change",
"identifier.change"
] | 657,663 | 657,664 | u211236379 | python |
p02853 | x,y = map(int,input().split())
p = 0
pr = [300000,200000,100000]
if(x < 3):p += pr[x-1]
if(y < 3):p += pr[y-1]
if(x == y and x == 1):p += 400000
print(p) | x,y = map(int,input().split())
p = 0
pr = [300000,200000,100000]
if(x <= 3):p += pr[x-1]
if(y <= 3):p += pr[y-1]
if(x == y and x == 1):p += 400000
print(p) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 657,665 | 657,666 | u030726788 | python |
p02853 | X=list(map(int, input()))
t=0
for i in range(len(X)):
if X[i]==1:
t+=300000
elif X[i]==2:
t+=200000
elif X[i]==3:
t+=100000
if X[0]==X[1] and X[0]==1:
t+=400000
print(t)
| X=list(map(int, input().split()))
t=0
for i in range(len(X)):
if X[i]==1:
t+=300000
elif X[i]==2:
t+=200000
elif X[i]==3:
t+=100000
if X[0]==X[1] and X[0]==1:
t+=400000
print(t)
| [
"call.add"
] | 657,686 | 657,687 | u363836311 | python |
p02853 | x,y=map(int,input().split())
ans=0
if x<=3:
ans+=(4-x)*100000
if y<=3:
ans+=(4-x)*100000
if ans==600000:
ans=1000000
print(ans) | x,y=map(int,input().split())
ans=0
if x<=3:
ans+=(4-x)*100000
if y<=3:
ans+=(4-y)*100000
if ans==600000:
ans=1000000
print(ans) | [
"identifier.change",
"expression.operation.binary.change"
] | 657,698 | 657,699 | u217627525 | python |
p02853 | X, Y = map(int, input().split())
ans = 0
if X <= 3:
ans += (4 - X) * 10 ** 5
if Y <= 3:
ans += (4 - X) * 10 ** 5
if X == Y == 1:
ans += 4 * 10 ** 5
print(ans)
| X, Y = map(int, input().split())
ans = 0
if X <= 3:
ans += (4 - X) * 10 ** 5
if Y <= 3:
ans += (4 - Y) * 10 ** 5
if X == Y == 1:
ans += 4 * 10 ** 5
print(ans)
| [
"identifier.change",
"expression.operation.binary.change"
] | 657,700 | 657,701 | u278057806 | python |
p02853 | x,y = map(int,input().split())
s=[0,]
d={
1:30000,
2:20000,
3:10000,
}
if x in d:
s.append(d[x])
if y in d:
s.append(d[y])
if x==1 and y==1:
s.append(40000)
print(sum(s))
| x,y = map(int,input().split())
s=[0,]
d={
1:300000,
2:200000,
3:100000,
}
if x in d:
s.append(d[x])
if y in d:
s.append(d[y])
if x==1 and y==1:
s.append(400000)
print(sum(s))
| [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change"
] | 657,708 | 657,709 | u075155299 | python |
p02853 | X, Y = map(int, input().split())
P = [300000, 200000, 100000, 0]
if X == 1 and Y == 1:
print(100000)
else:
print(P[min(3, X - 1)] + P[min(3, Y - 1)])
| X, Y = map(int, input().split())
P = [300000, 200000, 100000, 0]
if X == 1 and Y == 1:
print(1000000)
else:
print(P[min(3, X - 1)] + P[min(3, Y - 1)])
| [
"literal.number.integer.change",
"call.arguments.change",
"io.output.change"
] | 657,713 | 657,714 | u663710122 | python |
p02853 | x,y = map(int,input().split())
def point(a):
if a == 1:
return 300000
elif a == 2:
return 200000
elif a == 3:
return 100000
else:
return 0
a = point(x)
b = point(y)
if a == 1 and b == 1:
print(1000000)
else:
print(a+b) | x,y = map(int,input().split())
def point(a):
if a == 1:
return 300000
elif a == 2:
return 200000
elif a == 3:
return 100000
else:
return 0
c = point(x)
b = point(y)
if x == 1 and y == 1:
print(1000000)
else:
print(c+b) | [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 657,725 | 657,726 | u368796742 | python |
p02853 | x, y = map(int(input().split()))
ans = 0
if x == 1:
ans += 300000
elif x == 2:
ans += 200000
elif x == 3:
ans += 100000
if y == 1:
ans += 300000
elif y == 2:
ans += 200000
elif y == 3:
ans += 100000
if x == 1 and y == 1:
ans += 400000
print(ans)
| x, y = map(int,input().split())
ans = 0
if x == 1:
ans += 300000
elif x == 2:
ans += 200000
elif x == 3:
ans += 100000
if y == 1:
ans += 300000
elif y == 2:
ans += 200000
elif y == 3:
ans += 100000
if x == 1 and y == 1:
ans += 400000
print(ans)
| [
"assignment.value.change",
"call.arguments.change"
] | 657,727 | 657,728 | u426108351 | python |
p02853 | codePlace, implePlace = map(int, input().split(" "))
priceDict = {
"1":300000,
"2":200000,
"3":100000
}
totalPrice = priceDict[codePlace] if codePlace in priceDict.keys() else 0
totalPrice += priceDict[implePlace] if implePlace in priceDict.keys() else 0
totalPrice += 400000 if codePlace == 1 and implePlace == 1 else 0
print(totalPrice)
| codePlace, implePlace = map(int, input().split(" "))
priceDict = {
1:300000,
2:200000,
3:100000
}
totalPrice = priceDict[codePlace] if codePlace in priceDict.keys() else 0
totalPrice += priceDict[implePlace] if implePlace in priceDict.keys() else 0
totalPrice += 400000 if codePlace == 1 and implePlace == 1 else 0
print(totalPrice)
| [] | 657,747 | 657,748 | u851279551 | python |
p02853 | n,m = map(int,input().split())
lis = [0]*205
lis[0] == 300000
lis[1] == 200000
lis[2] == 100000
if n == m and n == 1:
print(1000000)
else:
print(lis[n-1]+lis[m-1])
| n,m = map(int,input().split())
lis = [0]*205
lis[0] = 300000
lis[1] = 200000
lis[2] = 100000
if n == m and n == 1:
print(1000000)
else:
print(lis[n-1]+lis[m-1])
| [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 657,751 | 657,752 | u728615412 | python |
p02853 | n,m = map(int,input().split())
lis = [0]*205
lis[0] == 30000
lis[1] == 20000
lis[2] == 10000
if n == m and n == 1:
print(1000000)
else:
print(lis[n-1]+lis[m-1]) | n,m = map(int,input().split())
lis = [0]*205
lis[0] = 300000
lis[1] = 200000
lis[2] = 100000
if n == m and n == 1:
print(1000000)
else:
print(lis[n-1]+lis[m-1])
| [] | 657,753 | 657,752 | u728615412 | python |
p02853 | def main(x: int, y: int):
award = 0
if (x and y) == 1:
award += 400000
for i in [x, y]:
if i == 1:
award += 300000
elif i == 2:
award += 200000
elif i == 3:
award += 100000
print(award)
if __name__ == "__main__":
x, y = map(int, input().split())
main(x, y)
| def main(x: int, y: int):
award = 0
if x == y == 1:
award += 400000
for i in [x, y]:
if i == 1:
award += 300000
elif i == 2:
award += 200000
elif i == 3:
award += 100000
print(award)
if __name__ == "__main__":
x, y = map(int, input().split())
main(x, y)
| [
"control_flow.branch.if.condition.change"
] | 657,756 | 657,757 | u977642052 | python |
p02853 | def main(x: int, y: int):
award: int = 0
if (x and y) == 1:
award += 400000
for i in [x, y]:
if i == 1:
award += 300000
elif i == 2:
award += 200000
elif i == 3:
award += 100000
print(award)
if __name__ == "__main__":
x, y = map(int, input().split())
main(x, y)
| def main(x: int, y: int):
award = 0
if x == y == 1:
award += 400000
for i in [x, y]:
if i == 1:
award += 300000
elif i == 2:
award += 200000
elif i == 3:
award += 100000
print(award)
if __name__ == "__main__":
x, y = map(int, input().split())
main(x, y)
| [
"control_flow.branch.if.condition.change"
] | 657,758 | 657,757 | u977642052 | python |
p02853 | n = [int(i) for i in input().split()]
T=0
for i in range(2):
if n[i] == 1: T+=3
elif n[i] == 1: T+=2
elif n[i] == 3: T+=1
if sum(n)==2: T+=4
print(T*100000) | n = [int(i) for i in input().split()]
T=0
for i in range(2):
if n[i] == 1: T+=3
elif n[i] == 2: T+=2
elif n[i] == 3: T+=1
if sum(n)==2: T+=4
print(T*100000) | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 657,761 | 657,762 | u295294832 | python |
p02853 | x,y=map(int,input())
if(x==y==1):
print(1000000)
else:
ans=max(4-x,0)*100000+max(4-y,0)*100000
print(ans) | x,y=map(int,input().split())
if(x==y==1):
print(1000000)
else:
ans=max(4-x,0)*100000+max(4-y,0)*100000
print(ans)
| [
"call.add"
] | 657,764 | 657,765 | u256868077 | python |
p02853 | X,Y = map(int,input().split())
ans = 0
if X <= 3 :
ans += (4-X)*100000
if Y <= 3 :
ans += (4-X)*100000
if X == 1 and Y == 1:
ans += 400000
print(ans) | X,Y = map(int,input().split())
ans = 0
if X <= 3 :
ans += (4-X)*100000
if Y <= 3 :
ans += (4-Y)*100000
if X == 1 and Y == 1:
ans += 400000
print(ans) | [
"identifier.change",
"expression.operation.binary.change"
] | 657,776 | 657,777 | u009348313 | python |
p02853 | import sys
input = sys.stdin.readline
def main():
X, Y = list(map(int, input().split()))
# X = list(map(int, input().split()))
ans = 0
if X == 3:
ans += 100000
elif X == 2:
ans += 100000
elif X == 1:
ans += 300000
if Y == 3:
ans += 100000
elif Y == 2:
ans += 100000
elif Y == 1:
ans += 300000
if X == 1 and Y == 1:
ans += 400000
print(ans)
if __name__ == '__main__':
main()
| import sys
input = sys.stdin.readline
def main():
X, Y = list(map(int, input().split()))
# X = list(map(int, input().split()))
ans = 0
if X == 3:
ans += 100000
elif X == 2:
ans += 200000
elif X == 1:
ans += 300000
if Y == 3:
ans += 100000
elif Y == 2:
ans += 200000
elif Y == 1:
ans += 300000
if X == 1 and Y == 1:
ans += 400000
print(ans)
if __name__ == '__main__':
main()
| [
"literal.number.integer.change"
] | 657,800 | 657,801 | u642874916 | python |
p02853 | x,y = map(int, input().split())
ans = 0
d = [300000,200000,100000]
if 1<=x and x<=3:
ans += d[x-1]
if 1<=y and y<=3:
ans += d[x-1]
if x==y and x==1:
ans += 400000
print(ans) | x,y = map(int, input().split())
ans = 0
d = [300000,200000,100000]
if 1<=x and x<=3:
ans += d[x-1]
if 1<=y and y<=3:
ans += d[y-1]
if x==y and x==1:
ans += 400000
print(ans) | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 657,804 | 657,805 | u117348081 | python |
p02853 | x, y = map(int, input().split())
ans = max(0,4-x) + max(0,3-y)
if x==1==y: ans += 4
print(ans*100000) | x, y = map(int, input().split())
ans = max(0,4-x) + max(0,4-y)
if x==1==y: ans += 4
print(ans*100000) | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 657,806 | 657,807 | u242031676 | python |
p02853 | a,b=map(int,input().split())
ans=0
if a<=3:
ans+=(4-a)*10**5
if b<=3:
ans+=(4-a)*10**5
if a==b==1:
ans+=4*10**5
print(ans) | a,b=map(int,input().split())
ans=0
if a<=3:
ans+=(4-a)*10**5
if b<=3:
ans+=(4-b)*10**5
if a==b==1:
ans+=4*10**5
print(ans) | [
"identifier.change",
"expression.operation.binary.change"
] | 657,834 | 657,835 | u995109095 | python |
p02853 | X, Y = map(int, input().split())
points = [-1, 100000, 200000, 300000, 0]
print(400000*(X==Y==1) + points[min(4, X)] + points[min(4, Y)]) | X, Y = map(int, input().split())
points = [-1, 300000, 200000, 100000, 0]
print(400000*(X==Y==1) + points[min(4, X)] + points[min(4, Y)]) | [
"literal.number.integer.change",
"assignment.value.change"
] | 657,846 | 657,847 | u599547273 | python |
p02853 | X, Y = map(int, input().split())
points = [-1, 100000, 200000, 300000, 0]
print(400000*(X==Y==1) + points[max(4, X)] + points[max(4, Y)]) | X, Y = map(int, input().split())
points = [-1, 300000, 200000, 100000, 0]
print(400000*(X==Y==1) + points[min(4, X)] + points[min(4, Y)]) | [
"literal.number.integer.change",
"assignment.value.change",
"misc.opposites",
"identifier.change",
"call.function.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 657,848 | 657,847 | u599547273 | python |
p02853 | a, b = [int(x) for x in input().split()]
won = 0
if a in range(1, 4):
won += [0,300000,200000,200000][a]
if b in range(1, 4):
won += [0,300000,200000,100000][b]
if a == 1 and b == 1:won += 400000
print(won) | a, b = [int(x) for x in input().split()]
won = 0
if a in range(1, 4):
won += [0,300000,200000,100000][a]
if b in range(1, 4):
won += [0,300000,200000,100000][b]
if a == 1 and b == 1:won += 400000
print(won) | [
"literal.number.integer.change"
] | 657,851 | 657,852 | u674190122 | python |
p02853 | X, Y = map(int, input().split())
r = 0
if(X == 1):
r += 300000
elif(X == 2):
r += 200000
elif(X == 3):
r += 300000
else:
pass
if(Y == 1):
r += 300000
elif(Y == 2):
r += 200000
elif(Y == 3):
r += 300000
if(X == Y == 1):
r += 400000
print(r) | X, Y = map(int, input().split())
r = 0
if(X == 1):
r += 300000
elif(X == 2):
r += 200000
elif(X == 3):
r += 100000
else:
pass
if(Y == 1):
r += 300000
elif(Y == 2):
r += 200000
elif(Y == 3):
r += 100000
else:
pass
if(X == Y == 1):
r += 400000
print(r) | [
"literal.number.integer.change",
"control_flow.pass.add"
] | 657,853 | 657,854 | u716529032 | python |
p02853 | X, Y = map(int, input().split())
ans = 0
if X == 3:
ans += 100000
elif X == 2:
ans += 200000
elif X == 1:
ans + 300000
if Y == 3:
ans += 100000
elif Y == 2:
ans += 200000
elif Y == 1:
ans + 300000
if ans == 600000:
ans += 400000
print(ans)
| X, Y = map(int, input().split())
ans = 0
if X == 3:
ans += 100000
elif X == 2:
ans += 200000
elif X == 1:
ans += 300000
if Y == 3:
ans += 100000
elif Y == 2:
ans += 200000
elif Y == 1:
ans += 300000
if ans == 600000:
ans += 400000
print(ans)
| [
"assignment.compound.arithmetic.replace.add",
"expression.operator.arithmetic.replace.remove",
"expression.operation.binary.change"
] | 657,855 | 657,856 | u500297289 | python |
p02853 | X,Y = map(int,input().split())
if X*Y == 1:
print(10^6)
else:
print(10^5*(max(0,4-X)+max(0,4-Y)))
| X,Y = map(int,input().split())
if X*Y == 1:
print(10**6)
else:
print(10**5*(max(0,4-X)+max(0,4-Y)))
| [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 657,867 | 657,868 | u747602774 | python |
p02853 | X,Y = map(int,input().split())
if X*Y == 1:
print(10^6)
else:
print(10^5*(max(0,4-X)+max(0,4-X)))
| X,Y = map(int,input().split())
if X*Y == 1:
print(10**6)
else:
print(10**5*(max(0,4-X)+max(0,4-Y)))
| [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"identifier.change"
] | 657,869 | 657,868 | u747602774 | python |
p02853 | x,y=map(int,input().split())
if (x==y==1):
output=1000000
elif (x*y==2):
output=500000
elif (x*y==3):
output=400000
elif (x*y==4):
output=400000
elif (x*y==6):
output=300000
elif (x*y==9):
output=200000
#x or y
elif (x==1 or y==1):
output=300000
elif (x==2 or y==2):
output=200000
elif (x==3 or y==3):
output=100000
else:
output=0
print(output)
| x,y=map(int,input().split())
if (x==y==1):
output=1000000
elif (x*y==2):
output=500000
elif (x*y==3):
output=400000
#elif (x*y==4):4*1が存在
elif (x==y==2):
output=400000
elif (x*y==6):
output=300000
elif (x*y==9):
output=200000
#x or y
elif (x==1 or y==1):
output=300000
elif (x==2 or y==2):
output=200000
elif (x==3 or y==3):
output=100000
else:
output=0
print(output)
| [
"control_flow.branch.if.condition.change",
"literal.number.integer.change"
] | 657,872 | 657,873 | u117078923 | python |
p02853 | n = input().split(' ')
third = 100000
second = 200000
first = 300000
sum = 0
for i in n:
if int(i) == 3:
sum = sum + third
elif int(i) == 2:
sum = sum + second
elif int(i) == 1:
sum = sum + first
if int(n[0]) == 1 and int(n[1]):
sum = sum + 400000
print(sum)
| n = input().split(' ')
third = 100000
second = 200000
first = 300000
sum = 0
for i in n:
if int(i) == 3:
sum = sum + third
elif int(i) == 2:
sum = sum + second
elif int(i) == 1:
sum = sum + first
if int(n[0]) == 1 and int(n[1]) == 1:
sum = sum + 400000
print(sum)
| [
"control_flow.branch.if.condition.change"
] | 657,883 | 657,884 | u719181921 | python |
p02853 | 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) | 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 >= 4 and Y == 3):
print(100000)
else:
print(0) | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 657,885 | 657,886 | u948050032 | python |
p02853 | X, Y = map(int, input().split())
if X <= 3 and Y <= 3:
ans = (4-X) * 100000 + (4-Y) * 100000
if X == 1 and Y == 1:
ans += 400000
elif X <= 3:
ans = (4-X) * 100000
elif Y <= 3:
ans = (4-Y) * 100000
print(ans) | X, Y = map(int, input().split())
if X <= 3 and Y <= 3:
ans = (4-X) * 100000 + (4-Y) * 100000
if X == 1 and Y == 1:
ans += 400000
elif X <= 3:
ans = (4-X) * 100000
elif Y <= 3:
ans = (4-Y) * 100000
else:
ans = 0
print(ans) | [
"assignment.add"
] | 657,896 | 657,897 | u194297606 | python |
p02853 | 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 | x, y = input().split()
price = 0
try:
if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
if int(x) == 1 and 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) | [
"control_flow.branch.if.condition.change",
"call.arguments.add"
] | 657,902 | 657,903 | u631525844 | python |
p02853 | x, y = input(), input()
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) | x, y = input().split()
price = 0
try:
if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
if int(x) == 1 and 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) | [
"control_flow.branch.if.condition.change"
] | 657,904 | 657,903 | u631525844 | python |
p02853 | 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) | x, y = input().split()
price = 0
try:
if 1 <= int(x) <= 205 and 1 <= int(y) <= 205:
if int(x) == 1 and 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) | [
"control_flow.branch.if.condition.change"
] | 657,905 | 657,903 | u631525844 | python |
p02853 | 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) | 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
if coding_contest_rank == 1 and robot_maneuver_rank == 1:
total_money = coding_contest_money + robot_maneuver_money + 400000
print(total_money)
else:
print(coding_contest_money + robot_maneuver_money) | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 657,908 | 657,909 | u209631375 | python |
p02853 | A, B = map(int, input().split())
list = [500000,300000,200000,100000,0]
if(A>3):
A = 4
elif(B>3):
B = 4
elif(A==1 and B==1):
A=B=0
money = list[A]+list[B]
print(money)
| A, B = map(int, input().split())
list = [500000,300000,200000,100000,0]
if(A>3):
A = 4
if(B>3):
B = 4
elif(A==1 and B==1):
A=B=0
money = list[A]+list[B]
print(money)
| [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 657,910 | 657,911 | u589047182 | python |
p02853 | x,y=map(int,input().split())
if x==1 and y==1:
print(1000000)
elif x<=3 and y>=4:
print((x-4)*(-100000))
elif x>=4 and y<=3:
print((y-4)*(-100000))
elif x<=3 and y<=3:
peint(((x-4)*(-100000))+((y-4)*(-100000)))
else:
print(0) | x,y=map(int,input().split())
if x==1 and y==1:
print(1000000)
elif x<=3 and y>=4:
print((x-4)*(-100000))
elif x>=4 and y<=3:
print((y-4)*(-100000))
elif x<=3 and y<=3:
print((x-4)*(-100000)+(y-4)*(-100000))
else:
print(0) | [
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 657,916 | 657,917 | u740047492 | python |
p02853 | x,y=map(int,input().split())
if x==1 and y==1:
print(1000000)
elif x<=3 and y>=4:
print((x-4)*(-100000))
elif x>=4 and y<=3:
print((y-4)*(-100000))
elif x<=3 and y<=3:
peint((x-4)*(-100000)+(y-4)*(-100000))
else:
print(0) | x,y=map(int,input().split())
if x==1 and y==1:
print(1000000)
elif x<=3 and y>=4:
print((x-4)*(-100000))
elif x>=4 and y<=3:
print((y-4)*(-100000))
elif x<=3 and y<=3:
print((x-4)*(-100000)+(y-4)*(-100000))
else:
print(0) | [
"identifier.change",
"call.function.change"
] | 657,918 | 657,917 | u740047492 | python |
p02853 | X, Y = map(int, input().split())
if X == 1:
x = 30000
elif X == 2:
x = 20000
elif X == 3:
x = 10000
else:
x = 0
if Y == 1:
y = 30000
elif Y == 2:
y = 20000
elif Y == 3:
y = 10000
else:
y = 0
if X == 1 and Y == 1:
print(1000000)
else:
print(x+y) | X, Y = map(int, input().split())
if X == 1:
x = 300000
elif X == 2:
x = 200000
elif X == 3:
x = 100000
else:
x = 0
if Y == 1:
y = 300000
elif Y == 2:
y = 200000
elif Y == 3:
y = 100000
else:
y = 0
if X == 1 and Y == 1:
print(1000000)
else:
print(x+y) | [
"literal.number.integer.change",
"assignment.value.change"
] | 657,939 | 657,940 | u212786022 | python |
p02853 | X, Y = map(int, input().split())
ranks = [X, Y]
ans = 0
for i in ranks:
if i == 1:
ans += 300000
elif i == 2:
ans += 200000
elif i == 3:
ans += 100000
if (X, Y) == (1, 1):
ans = 700000
print(ans) | X, Y = map(int, input().split())
ranks = [X, Y]
ans = 0
for i in ranks:
if i == 1:
ans += 300000
elif i == 2:
ans += 200000
elif i == 3:
ans += 100000
if (X, Y) == (1, 1):
ans = 1000000
print(ans) | [
"literal.number.integer.change",
"assignment.value.change"
] | 657,945 | 657,946 | u982591663 | python |
p02853 | A, B = map(int, input().split())
money = 0
if A==1 and B ==1:
print("1000000")
elif A<4 and B > 3:
money = 100000 * (4-A)
print(money)
elif A>3 and B < 4:
money = 100000 * (4-B)
print(money)
elif A <3 and B <3:
money = 100000 * (4-A) + 100000 * (4-B)
print(money)
else:
print("0") | A, B = map(int, input().split())
money = 0
if A==1 and B ==1:
print("1000000")
elif A<4 and B > 3:
money = 100000 * (4-A)
print(money)
elif A>3 and B < 4:
money = 100000 * (4-B)
print(money)
elif A <4 and B <4:
money = 100000 * (4-A) + 100000 * (4-B)
print(money)
else:
print("0") | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 657,947 | 657,948 | u439319240 | python |
p02853 | X,Y = map(int, input().split())
ls = [300000, 200000, 100000] + [0 for i in range(300)]
result = ls[X - 1] + ls[Y - 1]
if X == 1 & Y == 1:
result += 400000
print(result) | X,Y = map(int, input().split())
ls = [300000, 200000, 100000] + [0 for i in range(300)]
result = ls[X - 1] + ls[Y - 1]
if X == 1 and Y == 1:
result += 400000
print(result) | [
"control_flow.branch.if.condition.change"
] | 657,971 | 657,972 | u798894056 | python |
p02853 | x,y = map(int,input().split())
ans = 0
if x == 1 :
ans = 300000
elif x == 2:
ans = 200000
elif x == 3:
ans = 100000
if y == 1:
ans += 300000
elif y == 2:
ans += 200000
elif y == 3:
ans += 100000
if x == 1:
ans += 400000
if y == 1:
ans += 400000
print(ans)
| x,y = map(int,input().split())
ans = 0
if x == 1 :
ans = 300000
elif x == 2:
ans = 200000
elif x == 3:
ans = 100000
if y == 1:
ans += 300000
elif y == 2:
ans += 200000
elif y == 3:
ans += 100000
if x == 1 and y == 1:
ans += 400000
print(ans)
| [] | 657,973 | 657,974 | u671239754 | python |
p02853 | X,Y = map(int,input().split())
total = 0
if X <= 3:
total += (4 - X) * 100000
if Y <= 3:
total += (4 - X) * 100000
if X==1 and Y==1:
total += 400000
print(total) | X,Y = map(int,input().split())
total = 0
if X <= 3:
total += (4 - X) * 100000
if Y <= 3:
total += (4 - Y) * 100000
if X==1 and Y==1:
total += 400000
print(total) | [
"identifier.change",
"expression.operation.binary.change"
] | 657,975 | 657,976 | u159217536 | python |
p02853 | X, Y = map(int, input().split())
ans = 0
if X == Y == 1:
ans = 400000 + 300000 + 300000
else:
if X == 1 or Y == 1:
ans += 300000
elif X == 2:
ans += 200000
elif Y == 2:
ans += 200000
elif X == 3:
ans += 100000
elif Y == 3:
ans += 100000
print(ans) | X, Y = map(int, input().split())
ans = 0
if X == Y == 1:
ans = 400000 + 300000 + 300000
else:
if X == 1 or Y == 1:
ans += 300000
if X == 2:
ans += 200000
if Y == 2:
ans += 200000
if X == 3:
ans += 100000
if Y == 3:
ans += 100000
print(ans) | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 657,989 | 657,990 | u045909335 | python |
p02853 | x,y=map(int,input().split())
x=0 if x>=4 else x
y=0 if y>=4 else y
print(1000000 if x==1 and y==1 else (x+y)*100000) | x,y=map(int,input().split())
x=0 if x>=4 else 4-x
y=0 if y>=4 else 4-y
print(1000000 if x==3 and y==3 else (x+y)*100000) | [
"literal.number.integer.change",
"call.arguments.change",
"io.output.change"
] | 658,001 | 658,002 | u809457879 | python |
p02853 | a,b = map(int,input().split())
c = 0
if a == 3:
c += 1
elif a == 2:
c += 2
elif a == 1:
c += 3
if b == 3:
c += 1
elif b == 2:
c += 2
elif b == 1:
c += 3
if a == b == 1:
c += 4 | a,b = map(int,input().split())
c = 0
if a == 3:
c += 1
elif a == 2:
c += 2
elif a == 1:
c += 3
if b == 3:
c += 1
elif b == 2:
c += 2
elif b == 1:
c += 3
if a == b == 1:
c += 4
print(c*100000) | [
"call.add"
] | 658,003 | 658,004 | u853900545 | python |
p02853 | a,b = map(int,input().split())
c = 0
if a == 3:
c += 1
elif a == 2:
c += 2
elif a == 1:
c += 3
if b == 3:
c += 1
elif b == 2:
b += 2
elif a == 1:
b += 3
if a == b == 1:
c += 4
print(c*100000) | a,b = map(int,input().split())
c = 0
if a == 3:
c += 1
elif a == 2:
c += 2
elif a == 1:
c += 3
if b == 3:
c += 1
elif b == 2:
c += 2
elif b == 1:
c += 3
if a == b == 1:
c += 4
print(c*100000) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 658,005 | 658,004 | u853900545 | python |
p02853 | X, Y = map(int, input().split())
KANE = [
300000,
200000,
100000
]
ans=0
if X <= 3:
ans = KANE[X-1]
if Y <= 3:
ans = KANE[Y-1]
if X == 1 and Y == 1:
ans += 400000
print(ans) | X, Y = map(int, input().split())
KANE = [
300000,
200000,
100000
]
ans=0
if X <= 3:
ans += KANE[X-1]
if Y <= 3:
ans += KANE[Y-1]
if X == 1 and Y == 1:
ans += 400000
print(ans) | [
"assignment.value.change"
] | 658,006 | 658,007 | u067729694 | python |
p02853 | x, y = list(map(int, input().split()))
ans = 0
if x == 1 and y == 1:
ans += 400000
elif x == 1:
ans += 300000
elif x == 2:
ans += 200000
elif x == 3:
ans += 100000
elif y == 1:
ans += 300000
elif y == 2:
ans += 200000
elif y == 3:
ans += 100000
print(ans) | x, y = list(map(int, input().split()))
ans = 0
if x == 1 and y == 1:
ans += 400000
if x == 1:
ans += 300000
elif x == 2:
ans += 200000
elif x == 3:
ans += 100000
if y == 1:
ans += 300000
elif y == 2:
ans += 200000
elif y == 3:
ans += 100000
print(ans) | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 658,008 | 658,009 | u597455618 | python |
p02853 | x,y = map(int,input().split())
l = [0,300000,200000,100000]
alpha = 400000
ans = 0
if x == 1 and y == 1:
ans = l[1]*2 + alpha
print(ans)
else:
if 1 <= x <= 3:
ans = l[x]
if 1 <= y <= 3:
ans = l[y]
print(ans) | x,y = map(int,input().split())
l = [0,300000,200000,100000]
alpha = 400000
ans = 0
if x == 1 and y == 1:
ans = l[1]*2 + alpha
print(ans)
else:
if 1 <= x <= 3:
ans += l[x]
if 1 <= y <= 3:
ans += l[y]
print(ans) | [
"assignment.value.change"
] | 658,014 | 658,015 | u135847648 | python |
p02853 | x,y=map(int,input().split())
a=0
if x==3:
a+=1
if y==3:
a+=1
if x==2:
a+=2
if y==2:
a+=2
if x==1:
a+=3
if x==1:
a+=3
if x==y==1:
a+=4
print(a*100000)
| x,y=map(int,input().split())
a=0
if x==3:
a+=1
if y==3:
a+=1
if x==2:
a+=2
if y==2:
a+=2
if x==1:
a+=3
if y==1:
a+=3
if x==1 and y==1:
a+=4
print(a*100000)
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 658,020 | 658,021 | u187516587 | python |
p02853 | x, y = map(int, input().split())
d = {1:300000, 2:200000, 3:100000}
if x == 1 and y == 1:
print(10**6)
exit()
su = 0
if x in d:
su += d[x]
if y in d:
su += d[x]
print(su)
| x, y = map(int, input().split())
d = {1:300000, 2:200000, 3:100000}
if x == 1 and y == 1:
print(10**6)
exit()
su = 0
if x in d:
su += d[x]
if y in d:
su += d[y]
print(su)
| [
"identifier.change",
"variable_access.subscript.index.change"
] | 658,028 | 658,029 | u116763463 | python |
p02853 | 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) | 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 = 200000
elif X==3:
AnswerX = 100000
if Y == 1:
AnswerY= 300000
elif Y==2:
AnswerY = 200000
elif Y==3:
AnswerY = 100000
Answer = AnswerX + AnswerY + AnswerW
print(Answer)
| [
"literal.number.integer.change",
"assignment.value.change"
] | 658,036 | 658,037 | u760794812 | python |
p02853 | 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) | 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:
if Y==1:
prize+=300000
elif Y==2:
prize+=200000
elif Y==3:
prize+=100000
else:
pass
print(prize) | [] | 658,038 | 658,039 | u547608423 | python |
p02853 | X,Y=map(int,input().split())
prize=0
if X==1:
prize+=300000
if Y==1:
pprize+=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) | 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:
if Y==1:
prize+=300000
elif Y==2:
prize+=200000
elif Y==3:
prize+=100000
else:
pass
print(prize) | [
"identifier.change"
] | 658,040 | 658,039 | u547608423 | python |
p02853 | 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) | 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=1000000
print(s) | [
"assignment.compound.arithmetic.replace.add",
"expression.operator.arithmetic.replace.remove",
"expression.operation.binary.change"
] | 658,041 | 658,042 | u741268465 | python |
p02853 | # -*- coding: utf-8 -*-
X, Y = map(int, input().split())
def get_money(rank):
money = 0
if rank == 1:
money = 300000
elif rank == 2:
money = 200000
elif rank == 3:
money = 100000
return money
ans = 0
ans += get_money(X)
ans += get_money(Y)
if X == 1 & Y == 1:
ans += 400000
print(ans) | # -*- coding: utf-8 -*-
X, Y = map(int, input().split())
def get_money(rank):
money = 0
if rank == 1:
money = 300000
elif rank == 2:
money = 200000
elif rank == 3:
money = 100000
return money
ans = 0
ans += get_money(X)
ans += get_money(Y)
if X == 1 and Y == 1:
ans += 400000
print(ans) | [
"control_flow.branch.if.condition.change"
] | 658,058 | 658,059 | u811817592 | python |
p02853 | aw = 0
for i in map(int, input().split()):
if i == 1:
s+=300000
elif i ==2 :
s+= 200000
elif i ==3 :
s+= 100000
if aw== 600000:
aw= 1000000
print(aw) | aw = 0
for i in map(int, input().split()):
if i == 1:
aw+=300000
elif i ==2 :
aw+= 200000
elif i ==3 :
aw+= 100000
if aw== 600000:
aw= 1000000
print(aw) | [
"identifier.change"
] | 658,064 | 658,065 | u843845221 | python |
p02853 | 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)
| # -*- Coding: utf-8 -*-
import itertools#これは色々使える組み込み関数みたいなやつ
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+100000*(4-x[0])
else:
pass
if y[0]<= 3:
sum=sum+100000*(4-y[0])
else:
pass
if x[0]==1 and y[0]==1:
sum=sum+400000
else:
pass
print(sum)
| [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 658,075 | 658,076 | u007886915 | python |
p02853 | 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) | x,y = (int(x) for x in input().split())
if x>3 and y>3:
print(0)
elif x<=3 and 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) | [
"control_flow.branch.if.condition.change"
] | 658,077 | 658,078 | u985408358 | python |
p02853 | X, Y = map(int, input().split())
prices = {1: 300000, 2: 200000, 3: 100000}
ans = 0
if X < 4:
ans += prices[X]
if Y < 4:
ans += prices[Y]
if Y == 1 & X == 1:
ans += 400000
print(ans) | X, Y = map(int, input().split())
prices = {1: 300000, 2: 200000, 3: 100000}
ans = 0
if X < 4:
ans += prices[X]
if Y < 4:
ans += prices[Y]
if Y == 1 and X == 1:
ans += 400000
print(ans)
| [
"control_flow.branch.if.condition.change"
] | 658,090 | 658,091 | u254634413 | python |
p02853 | X, Y = map(int, input().split())
prices = {1: 300000, 2: 200000, 3: 1000000}
ans = 0
if X < 4:
ans += prices[X]
if Y < 4:
ans += prices[Y]
if Y == 1 and X == 1:
ans += 400000
print(ans)
| X, Y = map(int, input().split())
prices = {1: 300000, 2: 200000, 3: 100000}
ans = 0
if X < 4:
ans += prices[X]
if Y < 4:
ans += prices[Y]
if Y == 1 and X == 1:
ans += 400000
print(ans)
| [
"literal.number.integer.change",
"assignment.value.change"
] | 658,092 | 658,091 | u254634413 | python |
p02853 | x, y = map(int, input().split())
ans += max(0, (4-x)*100000)
ans += max(0, (4-y)*100000)
if x == 1 and y == 1:
ans += 400000
print(ans) | x, y = map(int, input().split())
ans = 0
ans += max(0, (4-x)*100000)
ans += max(0, (4-y)*100000)
if x == 1 and y == 1:
ans += 400000
print(ans) | [
"assignment.add"
] | 658,108 | 658,109 | u299869545 | python |
p02853 | x, y = map(int, input().split())
ans = 0
if x == 1:
ans += 300000
elif x == 2:
ans += 200000
elif x == 3:
ans += 100000
if y == 1:
ans += 300000
elif y == 2:
ans += 200000
elif y == 3:
ans += 10000
if x == 1 and y == 1:
ans += 400000
print(ans)
| x, y = map(int, input().split())
ans = 0
if x == 1:
ans += 300000
elif x == 2:
ans += 200000
elif x == 3:
ans += 100000
if y == 1:
ans += 300000
elif y == 2:
ans += 200000
elif y == 3:
ans += 100000
if x == 1 and y == 1:
ans += 400000
print(ans)
| [
"literal.number.integer.change"
] | 658,114 | 658,115 | u552746936 | python |
p02853 | x,y = map(int ,input().split())
l=[300000,200000,100000,0]
if x>=4:
x=4
elif y>=4:
y=4
if x==1 and y==1:
print(1000000)
else:
print(l[x-1]+l[y-1]) | x,y = map(int ,input().split())
l=[300000,200000,100000,0]
if x>=4:
x=4
if y>=4:
y=4
if x==1 and y==1:
print(1000000)
else:
print(l[x-1]+l[y-1]) | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 658,116 | 658,117 | u117193815 | python |
p02853 | # -*- coding: utf-8 -*-
X, Y = map(int, input().split())
sum = 0
if(X == 1):
sum = 300000
elif(X == 2):
sum = 200000
elif(X == 3):
sum = 10000
if(Y == 1):
sum += 300000
elif(Y == 2):
sum += 200000
elif(Y == 3):
sum += 100000
if(X == 1 and Y == 1):
sum += 400000
print(int(sum))
| # -*- coding: utf-8 -*-
X, Y = map(int, input().split())
sum = 0
if(X == 1):
sum = 300000
elif(X == 2):
sum = 200000
elif(X == 3):
sum = 100000
if(Y == 1):
sum += 300000
elif(Y == 2):
sum += 200000
elif(Y == 3):
sum += 100000
if(X == 1 and Y == 1):
sum += 400000
print(sum)
| [
"literal.number.integer.change",
"assignment.value.change",
"call.remove",
"call.arguments.change"
] | 658,121 | 658,122 | u171115409 | python |
p02853 | # -*- coding: utf-8 -*-
X, Y = map(int, input().split())
sum = 0
if(X == 1):
sum = 300000
elif(X == 2):
sum = 200000
elif(X == 3):
sum = 10000
if(Y == 1):
sum += 300000
elif(Y == 2):
sum += 200000
elif(Y == 3):
sum += 100000
if(X == 1 and Y == 1):
sum += 400000
print(sum)
| # -*- coding: utf-8 -*-
X, Y = map(int, input().split())
sum = 0
if(X == 1):
sum = 300000
elif(X == 2):
sum = 200000
elif(X == 3):
sum = 100000
if(Y == 1):
sum += 300000
elif(Y == 2):
sum += 200000
elif(Y == 3):
sum += 100000
if(X == 1 and Y == 1):
sum += 400000
print(sum)
| [
"literal.number.integer.change",
"assignment.value.change"
] | 658,123 | 658,122 | u171115409 | python |
p02853 | a,b = map(int,input().split())
if a+b==2:
print(1000000)
else:
ans =0
if a<=3:
ans+= (4-a)*100000
if b<=3:
ans+= (4-a)*100000
print(ans) | a,b = map(int,input().split())
if a+b==2:
print(1000000)
else:
ans =0
if a<=3:
ans+= (4-a)*100000
if b<=3:
ans+= (4-b)*100000
print(ans)
| [
"identifier.change",
"expression.operation.binary.change"
] | 658,127 | 658,128 | u115110170 | python |
p02853 | X, Y = map(int, input().split())
ans = 0
k = [3, 2, 1]
if X <= 3:
ans += k[X-1]
if Y <= 3:
ans += k[X-1]
if X == 1 and Y == 1:
ans += 4
print(ans * 100000) | X, Y = map(int, input().split())
ans = 0
k = [3, 2, 1]
if X <= 3:
ans += k[X-1]
if Y <= 3:
ans += k[Y-1]
if X == 1 and Y == 1:
ans += 4
print(ans * 100000) | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 658,131 | 658,132 | u552357043 | python |
p02853 | x,y = map(int,input().split())
if x == 1 and y == 1:print(int(7e5))
elif 1<=x<=3 and 1<=y<=3:
print(int((8-x-y)*1e5))
elif 1<=x<=3:print(int((4-x)*1e5))
elif 1<=y<=3:print(int((4-y)*1e5))
else:print(0) | x,y = map(int,input().split())
if x == 1 and y == 1:print(int(10e5))
elif 1<=x<=3 and 1<=y<=3:
print(int((8-x-y)*1e5))
elif 1<=x<=3:print(int((4-x)*1e5))
elif 1<=y<=3:print(int((4-y)*1e5))
else:print(0) | [
"literal.number.float.change",
"call.arguments.change",
"io.output.change"
] | 658,135 | 658,136 | u580093517 | python |
p02853 | 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 == 1000000
print(s) | 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 = 1000000
print(s) | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 658,139 | 658,140 | u064027771 | python |
p02853 | X,Y = map(int,input().split())
if X < 4:
X = (4-X)*100000
else:
X = 0
if Y < 4:
Y = (4-Y)*100000
else:
Y = 0
if X == 1 and Y == 1:
print(X+Y+400000)
else:
print(X+Y)
| X,Y = map(int,input().split())
if X < 4:
X = (4-X)*100000
else:
X = 0
if Y < 4:
Y = (4-Y)*100000
else:
Y = 0
if X == 300000 and Y == 300000:
print(X+Y+400000)
else:
print(X+Y)
| [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 658,143 | 658,144 | u503111914 | python |
p02853 | h = list(map(int, input().split()))
a = 0
for i in range(2):
if h[i] << 4:
a = a + 100000 * (4-h[i])
if h[0] == 1 and h[1] == 1:
a = a + 400000
print(a)
| h = list(map(int, input().split()))
a = 0
for i in range(2):
if h[i] <= 3:
a = a + 100000 * (4-h[i])
if h[0] == 1 and h[1] == 1:
a = a + 400000
print(a)
| [
"control_flow.loop.for.condition.change"
] | 658,149 | 658,150 | u660245210 | python |
p02853 | X,Y = map(int,input().split())
X_aaa=0
Y_aaa=0
if X ==1 and Y ==1:
print(1000000)
exit()
elif X==1 :
X_aaa+=300000
elif X==2 :
X_aaa+=200000
elif X==3 :
X_aaa+=100000
elif Y==1 :
Y_aaa+=300000
elif Y==2 :
Y_aaa+=200000
elif Y==3 :
Y_aaa+=100000
print(X_aaa+Y_aaa) | X,Y = map(int,input().split())
X_aaa=0
Y_aaa=0
if X ==1 and Y ==1:
print(1000000)
exit()
if X==1 :
X_aaa+=300000
elif X==2 :
X_aaa+=200000
elif X==3 :
X_aaa+=100000
if Y==1 :
Y_aaa+=300000
elif Y==2 :
Y_aaa+=200000
elif Y==3 :
Y_aaa+=100000
print(X_aaa+Y_aaa) | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 658,157 | 658,158 | u024245528 | python |
p02853 | X, Y = map(int, input().split())
a = 0
if X == 1:
a += 300000
elif X == 2:
a += 200000
elif X == 3:
a += 10000
if Y == 1:
a += 300000
elif Y == 2:
a += 200000
elif Y == 3:
a += 100000
if X == 1 and Y == 1:
a += 400000
print(a)
| X, Y = map(int, input().split())
a = 0
if X == 1:
a += 300000
elif X == 2:
a += 200000
elif X == 3:
a += 100000
if Y == 1:
a += 300000
elif Y == 2:
a += 200000
elif Y == 3:
a += 100000
if X == 1 and Y == 1:
a += 400000
print(a)
| [
"literal.number.integer.change"
] | 658,166 | 658,167 | u640123177 | python |
p02853 | X, Y = map(int, input().split())
ans = 0
if X < 4:
ans += (4 - X) * 10**5
if Y < 4:
ans += (4 - X) * 10**5
if X == 1 and Y == 1:
ans += 4 * 10**5
print(ans) | X, Y = map(int, input().split())
ans = 0
if X < 4:
ans += (4 - X) * 10**5
if Y < 4:
ans += (4 - Y) * 10**5
if X == 1 and Y == 1:
ans += 4 * 10**5
print(ans) | [
"identifier.change",
"expression.operation.binary.change"
] | 658,170 | 658,171 | u463858127 | python |
p02854 | import sys
input = sys.stdin.readline
N=int(input())
A=list(map(int,input().split()))
total = sum(A)
total *= 2
mindif = 1e12
sub = 0
for i in range(N):
sub += 2 * A[i]
dif = abs(total//2-sub)
if dif < mindif:
mindif = dif
else:
break
print(mindif)
| import sys
input = sys.stdin.readline
N=int(input())
A=list(map(int,input().split()))
total = sum(A)
total *= 2
mindif = 1e12
sub = 0
for i in range(N):
sub += 2 * A[i]
dif = abs(total//2-sub)
if dif < mindif:
mindif = dif
print(mindif)
| [
"control_flow.break.remove"
] | 658,178 | 658,179 | u840037795 | python |
p02854 | n = int(input())
l = list(map(int,input().split()))
from itertools import accumulate
tot=sum(l)
ans=10**9+7
for i in list(accumulate(l)):
if i <= tot//2:
ans=min(ans, abs(tot-(i*2)))
for i in list(accumulate(l[::-1])):
if i <= tot//2:
ans=min(ans, abs(tot--(i*2)))
print(ans)
| n = int(input())
l = list(map(int,input().split()))
from itertools import accumulate
tot=sum(l)
ans=2020202020*100000
for i in list(accumulate(l)):
if i <= tot//2:
ans=min(ans, abs(tot-(i*2)))
for i in list(accumulate(l[::-1])):
if i <= tot//2:
ans=min(ans, abs(tot-(i*2)))
print(ans) | [
"expression.operation.binary.remove",
"expression.operation.unary.arithmetic.remove",
"call.arguments.change"
] | 658,190 | 658,189 | u680851063 | python |
p02854 | from itertools import accumulate
n = int(input())
a = list(map(int, input().split()))
cumsum = list(accumulate(a))
total = cumsum[-1]
ans = 10*20
for left in cumsum:
right = total - left
ans = min(ans, abs(left - right))
print(ans) | from itertools import accumulate
n = int(input())
a = list(map(int, input().split()))
cumsum = list(accumulate(a))
total = cumsum[-1]
ans = 10**20
for left in cumsum:
right = total - left
ans = min(ans, abs(left - right))
print(ans) | [
"assignment.value.change",
"expression.operation.binary.change"
] | 658,191 | 658,192 | u687574784 | python |
p02854 | n=int(input())
a=list(map(int,input().split()))
harf=sum(a)//2
l,r,i=0,a[0],0
while r<harf:
i+=1
l=r
r+=a[i]
print(min(harf-l,r-harf)) | n=int(input())
a=list(map(int,input().split()))
harf=sum(a)/2
l,r,i=0,a[0],0
while r<harf:
i+=1
l=r
r+=a[i]
print(int(min(harf-l,r-harf)*2)) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.add",
"call.arguments.change"
] | 658,206 | 658,207 | u131881594 | python |
p02854 | import sys
import collections
import bisect
def main():
n = int(input())
AList = list(map(int, input().split()))
ASum = sum(a)
c = 0
for i in range(n):
c += AList[i]
if c >= ASum / 2:
k = i
break
ans = min(2 * c - ASum, ASum - 2 * c + 2 * AList[k])
print(ans)
if __name__ == '__main__':
main()
| import sys
import collections
import bisect
def main():
n = int(input())
AList = list(map(int, input().split()))
ASum = sum(AList)
c = 0
for i in range(n):
c += AList[i]
if c >= ASum / 2:
k = i
break
ans = min(2 * c - ASum, ASum - 2 * c + 2 * AList[k])
print(ans)
if __name__ == '__main__':
main()
| [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 658,223 | 658,224 | u395202850 | python |
p02854 | n=int(input())
A=list(map(int,input().split()))
m=float('INF')
sa=[]
for i,a in enumerate(A):
sa.append(sa[i]+ai)
for i in range(n+1):
ans=min(ans,abs(sa[i]-(sa[-1]-sa[i])))
print(ans)
| n=int(input())
A=list(map(int,input().split()))
ans=float('INF')
sa=[0]
for i,a in enumerate(A):
sa.append(sa[i]+a)
for i in range(n+1):
ans=min(ans,abs(sa[i]-(sa[-1]-sa[i])))
print(ans) | [
"assignment.variable.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 658,225 | 658,226 | u694665829 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.