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 8
values |
|---|---|---|---|---|---|---|---|
p02777 | S,T = int().split()
A,B = map(int,input().split())
U = input()
if U == S:
A = A - 1
else:
B = B - 1
print(A,B)
| S,T = input().split()
A,B = map(int,input().split())
U = input()
if U == S:
A = A - 1
else:
B = B - 1
print(A,B)
| [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 573,873 | 573,874 | u566297428 | python |
p02777 | Moji = input().split()
Ball = input().split()
Takahasi = input()
if Moji == Takahasi:
print(int(Ball[0])-1,int(Ball[1]))
else:
print(int(Ball[0]),int(Ball[1])-1) | Moji = input().split()
Ball = input().split()
Takahasi = input()
if Moji[0] == Takahasi:
print(int(Ball[0])-1,int(Ball[1]))
else:
print(int(Ball[0]),int(Ball[1])-1)
| [
"control_flow.branch.if.condition.change"
] | 573,877 | 573,878 | u988191897 | python |
p02777 | S, T = input().split()
A, B = map(int, input().split())
if S == input():
A -=1
else:
B -=1
print("{0}" "{1}".format(A, B))
| S, T = input().split()
A, B = map(int, input().split())
if S == input():
A -= 1
else:
B -= 1
print("{0} {1}".format(A, B))
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 573,879 | 573,880 | u987170100 | python |
p02777 | s, t = map(str, input().split())
a, b = map(int, input().split())
u = input()
if s == u:
a -= 1
elif s == t:
b -= 1
print(str(a) + ' '+ str(b)) | s, t = map(str, input().split())
a, b = map(int, input().split())
u = input()
if s == u:
a -= 1
elif t == u:
b -= 1
print(str(a) + ' '+ str(b)) | [
"control_flow.branch.if.condition.change"
] | 573,895 | 573,896 | u035268040 | python |
p02777 | s,t = input().split()
a,b = map(int, input().split())
u = input()
if u == s:
a+=1
else:
b+=1
print(a,b) | s,t = input().split()
a,b = map(int, input().split())
u = input()
if u == s:
a-=1
else:
b-=1
print(a,b) | [
"expression.operator.change"
] | 573,897 | 573,898 | u362560965 | python |
p02777 | s,t = input().split()
a,b = input().split()
u = input().split()
if u == s:
print(int(a)-1,b)
else:
print(a,int(b)-1)
| s,t = input().split()
a,b = input().split()
u = input()
if u == s:
print(int(a)-1,b)
else:
print(a,int(b)-1) | [
"call.remove"
] | 573,907 | 573,908 | u031118696 | python |
p02777 | S,T=input().split(" ")
A,B=map(int,input().split(" "))
U=input()
if U==S:
A=A-1
else:
B=B-1
print(" ".join([A,B])) | S,T=input().split(" ")
A,B=map(int,input().split(" "))
U=input()
if U==S:
A=A-1
else:
B=B-1
print(" ".join([str(A),str(B)])) | [
"call.add",
"call.arguments.change"
] | 573,911 | 573,912 | u334928930 | python |
p02777 | ss=input().split()
a,b=list(map(int,input()))
s=input()
if s==ss[0]: print(a-1,b)
elif s==ss[1]:print(a,b-1) | ss=input().split()
a,b=list(map(int,input().split()))
s=input()
if s==ss[0]: print(a-1,b)
elif s==ss[1]:print(a,b-1) | [
"call.add"
] | 573,931 | 573,932 | u041046014 | python |
p02777 | a,b=input().split()
c,d=map(int,input().split())
e=imput()
if e==a:
c=c-1
else:
d=d-1
print(c,d)
| a,b=input().split()
c,d=map(int,input().split())
e=input()
if e==a:
c=c-1
else:
d=d-1
print(c,d)
| [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 573,939 | 573,940 | u706433263 | python |
p02777 | a,b=input().float()
c,d=map(int,input().float())
e=imput()
if e==a:
c=c-1
else:
d=d-1
print(c,d)
| a,b=input().split()
c,d=map(int,input().split())
e=input()
if e==a:
c=c-1
else:
d=d-1
print(c,d)
| [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"call.function.change"
] | 573,941 | 573,940 | u706433263 | python |
p02777 | a,b=input().float()
c,d=map(int,input().float())
e=imput()
if e=='a':
c=c-1
else:
d=d-1
print(c,d)
| a,b=input().split()
c,d=map(int,input().split())
e=input()
if e==a:
c=c-1
else:
d=d-1
print(c,d)
| [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"call.function.change",
"control_flow.branch.if.condition.change"
] | 573,942 | 573,940 | u706433263 | python |
p02777 | S, T = input().split()
A, B = input().split()
U = input()
print("{} {}".format(int(A) - 1 if S == U else 0, int(B) - 1 if T == U else 0))
| S, T = input().split()
A, B = input().split()
U = input()
print("{} {}".format(int(A) - (1 if S == U else 0), int(B) - (1 if T == U else 0)))
| [
"call.arguments.change"
] | 573,951 | 573,952 | u357858848 | python |
p02777 | a,b=input().spit()
d={}
d[a]=0
d[b]=0
d[a],d[b]=map(int,input().split())
x=input()
d[x]-=1
print(d[a],d[b]) | a,b=input().split()
d={}
d[a]=0
d[b]=0
d[a],d[b]=map(int,input().split())
x=input()
d[x]-=1
print(d[a],d[b])
| [
"assignment.value.change",
"identifier.change"
] | 573,962 | 573,963 | u021217230 | python |
p02777 | S, T =str, input().split()
A, B =map(int, input().split())
U = input()
if U == S:
A -= 1
else:
B -= 1
print(A, B) | S, T = input().split()
A, B =map(int, input().split())
U = input()
if U == S:
A -= 1
else:
B -= 1
print(A, B) | [] | 573,969 | 573,970 | u940516059 | python |
p02777 | colors = list(map(str, input().split()))
print(colors)
numbers = list(map(int, input().split()))
target_color = input()
for index, color in enumerate(colors):
if color == target_color:
numbers[index] = numbers[index] - 1
for num in numbers:
print(str(num) + " ", end="")
| colors = list(map(str, input().split()))
numbers = list(map(int, input().split()))
target_color = input()
for index, color in enumerate(colors):
if color == target_color:
numbers[index] = numbers[index] - 1
for num in numbers:
print(str(num) + " ", end="")
| [
"call.remove"
] | 573,971 | 573,972 | u392068219 | python |
p02777 | a,b=input().split()
n,m=map(int,input().split())
c=input()
if a==c:
print(a-1,b)
else:
print(a,b-1) | a,b=input().split()
n,m=map(int,input().split())
c=input()
if a==c:
print(n-1,m)
else:
print(n,m-1) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 573,974 | 573,975 | u178465329 | python |
p02777 | #ABC154A
import sys
from collections import OrderedDict
d = OrderedDict()
s,t = sys.stdin.readline().split()
n1, n2 = map(int, sys.stdin.readline().split())
d[s] = n1
d[t] = n2
d[sys.stdin.readline()] -=1
print(*d.values()) | #ABC154A
import sys
from collections import OrderedDict
d = OrderedDict()
s,t = sys.stdin.readline().split()
n1, n2 = map(int, sys.stdin.readline().split())
d[s] = n1
d[t] = n2
d[sys.stdin.readline().rstrip()] -=1
print(*d.values())
| [
"call.add"
] | 573,976 | 573,977 | u401452016 | python |
p02777 | s,t=map(input().split())
a,b=map(int,input().split())
c=input()
d=" "
if s==c:
print("{}""{}""{}".format(a-1,d,b))
else:
print("{}""{}""{}".format(a,d,b-1)) | s,t=input().split()
a,b=map(int,input().split())
c=input()
d=" "
if s==c:
print("{}""{}""{}".format(a-1,d,b))
else:
print("{}""{}""{}".format(a,d,b-1)) | [
"call.remove",
"call.arguments.change"
] | 573,978 | 573,979 | u768174784 | python |
p02777 | s,t=map(input().split())
a,b=map(int,input().split())
c=input()
d=""
if s==c:
print("{}""{}""{}".format(a-1,d,b))
else:
print("{}""{}""{}".format(a,d,b-1)) | s,t=input().split()
a,b=map(int,input().split())
c=input()
d=" "
if s==c:
print("{}""{}""{}".format(a-1,d,b))
else:
print("{}""{}""{}".format(a,d,b-1)) | [
"call.remove",
"call.arguments.change",
"literal.string.change",
"assignment.value.change"
] | 573,980 | 573,979 | u768174784 | python |
p02777 | s = list(map(int, input().split()))
num = list(map(int, input().split()))
ALL = {}
for i in range(len(s)):
ALL[s[i]] = num[i]
k = input()
ALL[k] -= 1
for i in range(len(s)):
print(ALL[s[i]], end = ' ') | s = list(map(str, input().split()))
num = list(map(int, input().split()))
ALL = {}
for i in range(len(s)):
ALL[s[i]] = num[i]
ALL[input()] -= 1
for i in range(len(s)):
print(ALL[s[i]], end = ' ') | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 573,981 | 573,982 | u638339796 | python |
p02777 | s = list(map(int, input().split()))
num = list(map(int, input().split()))
ALL = {}
for i in range(len(s)):
ALL[s[i]] = num[i]
ALL[input()] -= 1
for i in range(len(s)):
print(ALL[s[i]], end = ' ')
| s = list(map(str, input().split()))
num = list(map(int, input().split()))
ALL = {}
for i in range(len(s)):
ALL[s[i]] = num[i]
ALL[input()] -= 1
for i in range(len(s)):
print(ALL[s[i]], end = ' ') | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 573,983 | 573,982 | u638339796 | python |
p02777 | S,T = map(str,input().split())
A,B = map(str,input().split())
U = input()
if U == S:
print(A-1,B)
else:
print(A,B-1) | S,T = map(str,input().split())
A,B = map(int,input().split())
U = input()
if U == S:
print(A-1,B)
else:
print(A,B-1) | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 573,986 | 573,985 | u119947188 | python |
p02777 | S, T = input().split(' ')
A, B = list(map(int, input().split(' ')))
U = input()
if U==S: return A-1,B
if U==T: return A,B-1 | S, T = input().split(' ')
A, B = list(map(int, input().split(' ')))
U = input()
if U==S: print(A-1,B)
if U==T: print(A,B-1) | [
"function.return_value.change",
"call.arguments.change"
] | 573,988 | 573,989 | u948823191 | python |
p02777 | S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == T:
A = A-1
else:
B = B-1
print(A, B) | S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S:
A = A-1
else:
B = B-1
print(A, B) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,990 | 573,991 | u133566678 | python |
p02777 | s, t = map(str, input().split())
a. b = map(int, input().split())
u = input()
if s == u:
print("{} {}".format(a-1, b))
else:
print("{} {}".format(a, b-1))
| s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
print("{} {}".format(a-1, b))
else:
print("{} {}".format(a, b-1))
| [
"call.remove",
"call.arguments.change",
"misc.typo",
"assignment.variable.change"
] | 573,992 | 573,993 | u977141657 | python |
p02777 | s, t = input().split()
a. b = map(int, input().split())
u = input()
if s == u:
print("{} {}".format(a-1, b))
else:
print("{} {}".format(a, b-1))
| s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
print("{} {}".format(a-1, b))
else:
print("{} {}".format(a, b-1))
| [
"misc.typo",
"assignment.variable.change"
] | 573,994 | 573,993 | u977141657 | python |
p02777 | color=input().split()
x,y=map(int,input().split())
color2=input()
if color2==color[0]:
print(x-1)
else:
print(y-1) | color=input().split()
x,y=map(int,input().split())
color2=input()
if color2==color[0]:
print(x-1,y)
else:
print(x,y-1) | [
"call.arguments.add"
] | 574,005 | 574,006 | u001834182 | python |
p02777 | # import math
# import bisect
# import heapq
# from collections import deque
# import numpy as np
# a,b,c = map(int, input().split())
# n = int(input())
# a = list(map(int,input().split()))
s,t = input().split()
a,b = map(int, input().split())
u = int(input())
if u == s: print(a-1,b)
else: print(a,b-1)
| # import math
# import bisect
# import heapq
# from collections import deque
# import numpy as np
# a,b,c = map(int, input().split())
# n = int(input())
# a = list(map(int,input().split()))
s,t = input().split()
a,b = map(int, input().split())
u = input()
if u == s: print(a-1,b)
else: print(a,b-1)
| [
"call.remove",
"call.arguments.change"
] | 574,019 | 574,020 | u557565572 | python |
p02777 | s,t = map(int,input().split())
a,b = map(int,input().split())
u = input()
if u == s:
a -= 1
else:
b -= 1
print('{0} {1}'.format(a,b)) | s,t = input().split()
a,b = map(int,input().split())
u = input()
if u == s:
a -= 1
else:
b -= 1
print('{0} {1}'.format(a,b))
| [
"call.remove",
"call.arguments.change"
] | 574,044 | 574,045 | u446371873 | python |
p02777 | A,B=map(int,input().split())
S,T=map(str,input().split())
U=input()
if S==U:
print(A-1,B)
else:
print(A,B-1) | S,T=map(str,input().split())
A,B=map(int,input().split())
U=input()
if S==U:
print(A-1,B)
else:
print(A,B-1) | [
"assignment.remove",
"assignment.add"
] | 574,060 | 574,061 | u204260373 | python |
p02777 | A,B=map(int,input().split())
S,T=map(str,input().split())
U=input()
if S==U:
print(A-1,B)
else:
print(A,B-1) | S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()
if S==U:
print(A-1, B)
else:
print(A, B-1)
| [
"assignment.remove",
"assignment.add"
] | 574,060 | 574,063 | u204260373 | python |
p02777 | A,B=map(int,input().split())
S,T=map(str,input().split())
U=input()
if S==U:
print(A-1,B)
else:
print(A,B-1) | S, T=map(str, input().split())
A, B=map(int, input().split())
U=input()
if S == U:
print(A-1, B)
else:
print(A, B-1)
| [
"assignment.remove",
"assignment.add"
] | 574,060 | 574,064 | u204260373 | python |
p02777 | s, t = input().split()
a, b = map(int, input().split())
c = input()
if c == a: a -= 1
else: b -= 1
print(a, b) | s, t = input().split()
a, b = map(int, input().split())
c = input()
if c == s: a -= 1
else: b -= 1
print(a, b) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,069 | 574,070 | u308684517 | python |
p02777 | s,t=input().split()
a,b=map(int,input().split())
u=input()
if s==u:
a-=1
else:
b-=1
print(a+b)
| s,t=input().split()
a,b=map(int,input().split())
u=input()
if s==u:
a-=1
else:
b-=1
print(a,b)
| [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 574,071 | 574,072 | u366886346 | python |
p02777 | s,t=map(input().split())
a,b=map(input().split())
u=input()
if s==u:
a-=1
else:
b-=1
print(a+b)
| s,t=input().split()
a,b=map(int,input().split())
u=input()
if s==u:
a-=1
else:
b-=1
print(a,b)
| [
"call.remove",
"call.arguments.change",
"call.arguments.add",
"expression.operation.binary.change",
"io.output.change"
] | 574,073 | 574,072 | u366886346 | python |
p02777 | s,t=map(str,input().split())
a,b=map(int,input().split())
u=str(input)
if u==s:
print((a-1),b)
else:
print(a,(b-1)) | s,t=map(str,input().split())
a,b=map(int,input().split())
u=str(input())
if u==s:
print((a-1),b)
else:
print(a,(b-1))
| [
"call.add"
] | 574,074 | 574,075 | u664907598 | python |
p02777 | S, T = input().split()
A, B = map(int,input().split)
U = input()
if U == S:
print(A-1 , B)
else:
print(A , B-1) | S, T = input().split()
A, B = map(int,input().split())
U = input()
if S == U:
print(A-1 , B)
else:
print(A , B-1) | [
"call.add",
"control_flow.branch.if.condition.change"
] | 574,078 | 574,079 | u957098479 | python |
p02777 | S, T = input().split()
A, B = map(int, input().split)
U = input()
if S == U:
print(A-1 , B)
else:
print(A , B-1) | S, T = input().split()
A, B = map(int,input().split())
U = input()
if S == U:
print(A-1 , B)
else:
print(A , B-1) | [
"call.add"
] | 574,080 | 574,079 | u957098479 | python |
p02777 | S, T = input().split()
A, B = map(int,input().split)
U = input()
if S == U:
print(A-1 , B)
else:
print(A , B-1) | S, T = input().split()
A, B = map(int,input().split())
U = input()
if S == U:
print(A-1 , B)
else:
print(A , B-1) | [
"call.add"
] | 574,081 | 574,079 | u957098479 | python |
p02777 | from sys import stdin
S,T = stdin.readline().rstrip().split()
A,B = [int(x) for x in stdin.readline().rstrip().split()]
U = stdin.readline().rstrip().split()
if S==U:
print(str(A-1)+" "+str(B))
else :
print(str(A)+" "+str(B-1)) | from sys import stdin
S,T = stdin.readline().rstrip().split()
A,B = [int(x) for x in stdin.readline().rstrip().split()]
U = stdin.readline().rstrip().split()
if S==U[0]:
print(str(A-1)+" "+str(B))
else :
print(str(A)+" "+str(B-1)) | [
"control_flow.branch.if.condition.change"
] | 574,089 | 574,090 | u396210538 | python |
p02777 | S, T = map(input().split())
A, B = map(int, input().split())
U = input()
ans = 0
if(S == U):
ans = A - 1
print(ans,B)
else:
ans = B - 1
print(A,ans) | S, T = map(str,input().split())
A, B = map(int, input().split())
U = input()
ans = 0
if(S == U):
ans = A - 1
print(ans,B)
else:
ans = B - 1
print(A,ans) | [
"call.arguments.add"
] | 574,097 | 574,098 | u964521959 | python |
p02777 | a = input().split()
c, d = map(int, input().split())
e = input()
if (e == a): c -= 1
else: d -= 1
print("{}" "{}" "{}".format(c," ",d))
| a = input().split()
c, d = map(int, input().split())
e = input()
if (e == a[0]): c -= 1
else: d -= 1
print("{}" "{}" "{}".format(c," ",d))
| [
"control_flow.branch.if.condition.change"
] | 574,102 | 574,103 | u205758185 | python |
p02777 | S,T = input().split()
A,B = map(int, input().split())
U = input()
if S==U :
print(str(A-1)+" "+str(B))
elif T==U :
print(str(A)+" "+str(B-1))
| S,T = input().split()
A,B = map(int,input().split())
U=input()
if S==U:
print(str(A-1)+" "+str(B))
elif T==U :
print(str(A)+" "+str(B-1)) | [
"literal.string.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 574,118 | 574,119 | u530883476 | python |
p02777 | s,t=map(str,input().split())
a,b=map(int,input().split())
q=input()
print("{x} {y}".format(a-1,b) if q==s else "{x} {y}".format(a,b-1))
| s,t=map(str,input().split())
a,b=map(int,input().split())
q=input()
print("{} {}".format(a-1,b) if q==s else "{} {}".format(a,b-1))
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 574,122 | 574,123 | u023229441 | python |
p02777 | s,t = map(str,input.split())
a,b = map(int,input.split())
u = str(input())
if s == u:
a -= 1
if s == u :
b -= 1
print("{0} {1}".format(a,b)) | s,t = map(str,input().split())
a,b = map(int,input().split())
u = str(input())
if s == u:
a -= 1
elif t == u:
b -= 1
print("{0} {1}".format(a,b)) | [
"call.add"
] | 574,124 | 574,125 | u159369286 | python |
p02777 | S,T = map(int,input().split())
A,B = map(int,input().split())
s = input()
if s == S:
A -=1
else:
B -=1
print(A,B) | S,T = map(str,input().split())
A,B = map(int,input().split())
s = input()
if s == S:
A -=1
elif s == T:
B -=1
print(A,B) | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"control_flow.branch.if.condition.change"
] | 574,126 | 574,127 | u974935538 | python |
p02777 | s,t=input().split()
a,b=map(int,input().split())
u=input()
if u==s:
a=a-1
if u==t:
b=b-1
print([str(a)+" "+str(b)])
| s,t=input().split()
a,b=map(int,input().split())
u=input()
if u==s:
a=a-1
if u==t:
b=b-1
print(*[str(a)+" "+str(b)])
| [
"call.arguments.change"
] | 574,128 | 574,129 | u495723050 | python |
p02777 | S,T=input().split()
A,B=map(int,input().split())
U=input()
print(S, T)
if(U==S):
print(A-1, B)
else:
print(A, B-1) | S,T=input().split()
A,B=map(int,input().split())
U=input()
if(U==S):
print(A-1, B)
else:
print(A, B-1) | [
"call.remove"
] | 574,130 | 574,131 | u442855260 | python |
p02777 | #入力
S, T = map(str, input().split())
A, B = map(int, input().split())
U = str(input())
#出力
if S == U:
print( [A-1,B] )
else:
print( [A, B-1] ) | #入力
S, T = map(str, input().split())
A, B = map(int, input().split())
U = str(input())
#出力
if S == U:
print( A-1,B )
else:
print( A, B-1 ) | [
"call.arguments.change"
] | 574,132 | 574,133 | u053909865 | python |
p02777 | input1 = input()
s = str(input1).split(' ')[0]
t = str(input1).split(' ')[1]
input2 = input()
a = int(str(input2).split(' ')[0])
b = int(str(input2).split(' ')[1])
u = str(input())
if s == t:
a = a - 1
else:
b = b - 1
print(a, ' ', b) | input1 = input()
s = str(input1).split(' ')[0]
t = str(input1).split(' ')[1]
input2 = input()
a = int(str(input2).split(' ')[0])
b = int(str(input2).split(' ')[1])
u = str(input())
if s == u:
a = a - 1
else:
b = b - 1
print(a, ' ', b) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,134 | 574,135 | u726444300 | python |
p02777 | s, t = input().split()
a, b = map(int, input().split())
u = input()
if u == s:
print(str(a)-1+" "+str(b))
else:
print(str(a)+" "+str(b-1))
| s, t = input().split()
a, b = map(int, input().split())
u = input()
if u == s:
print(str(a-1)+" "+str(b))
else:
print(str(a)+" "+str(b-1))
| [
"call.arguments.change"
] | 574,160 | 574,161 | u610856690 | python |
p02777 | s, t = input().split()
a,b = map(int,input().split())
u = input()
if s == u:
print(a-1)
else:
print(b-1) | s, t = input().split()
a,b = map(int,input().split())
u = input()
if s == u:
print(a-1, b)
else:
print(a, b-1)
| [
"call.arguments.add"
] | 574,164 | 574,165 | u328131364 | python |
p02777 | import sys
def main():
# sys.stdin = open("input154a.txt")
s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == t:
a -= 1
else:
b -= 1
print(str(a) + " " + str(b))
if __name__ == "__main__":
main()
| import sys
def main():
# sys.stdin = open("input154a.txt")
s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
a -= 1
else:
b -= 1
print(str(a) + " " + str(b))
if __name__ == "__main__":
main()
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,174 | 574,175 | u946433121 | python |
p02777 | s = list(map(input().split()))
a = list(map(int,input().split()))
u = input()
if s[0] == u:
a[0] -= 1
else:
a[1] -= 1
print(str(a[0]) + " " + str(a[1])) | s = input().split()
a = list(map(int,input().split()))
u = input()
if s[0] == u:
a[0] -= 1
else:
a[1] -= 1
print(str(a[0]) + " " + str(a[1])) | [
"call.remove",
"call.arguments.change"
] | 574,196 | 574,197 | u890461092 | python |
p02777 | #a
s,t = input().split()
a,b = map(int,input().split())
u = input()
if u == s:
print(a,b-1)
else:
print(a-1,b) | s,t = input().split()
a,b = map(int,input().split())
u = input()
if u == t:
print(a,b-1)
else:
print(a-1,b) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,206 | 574,207 | u586759271 | python |
p02777 | s,t = map(str, input().split())
a,b = map(str, input().split())
u = input()
if s == u:
print("{} {}".format(a-1, b))
else:
print("{} {}".format(a, b-1)) | s,t = map(str, input().split())
a,b = map(int, input().split())
u = input()
if s == u:
print("{} {}".format(a-1, b))
else:
print("{} {}".format(a, b-1))
| [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 574,224 | 574,225 | u851319680 | python |
p02777 | s,b = input().split()
d = {}
d[s],d[b] = [int(x) for x in input().split()]
d[input] -= 1
print(d[s],d[b]) | s,b = input().split()
d = {}
d[s],d[b] = [int(x) for x in input().split()]
d[input()] -= 1
print(d[s],d[b]) | [
"call.add"
] | 574,233 | 574,234 | u184882264 | python |
p02777 | S,T = map(str,input().split())
A,B = map(int,input().split())
U = input()
if S == U:
print(str(A-1) + '' + str(B))
else:
print(str(A) + '' + str(B-1)) | S,T = map(str,input().split())
A,B = map(int,input().split())
U = input()
if S == U:
print(str(A-1) + ' ' + str(B))
else:
print(str(A) + ' ' + str(B-1))
| [
"literal.string.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 574,237 | 574,238 | u617037231 | python |
p02777 | s, t = input().split()
a, b = int(input().split())
u = input()
if s == u:
a = a - 1
else:
b = b - 1
print("{} {}".format(a, b)) | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
a = a - 1
else:
b = b - 1
print("{} {}".format(a, b)) | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.add"
] | 574,256 | 574,257 | u370721525 | python |
p02777 | S,T = input().split()
A,B = map(int,input().split())
U = input()
if U == S:
A = A-1
else:
B = B-1
print (str(A) + ',' + str(B))
| S,T = input().split()
A,B = map(int,input().split())
U = input()
if U == S:
A = A-1
else:
B = B-1
print (str(A) + ' ' + str(B))
| [
"literal.string.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 574,258 | 574,259 | u432518223 | python |
p02777 | color = input().split() #s_1 s_2を分割して取得し、sに値を入れる
count = list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる
select_color = input() # 玉の色を選択
for i in range(0, 1):
if select_color == color[i]:
count[i] -= 1
print(count[0], count[1]) #残りの個数を出力 | color = input().split() #s_1 s_2を分割して取得し、colorに値を入れる
count = list(map(int, input().split())) #i_1 i_2を取得し、countに値を入れる
select_color = input() # 玉の色を選択
for i in range(0, 2):
if select_color == color[i]:
count[i] -= 1
print(count[0], count[1]) #残りの個数を出力 | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 574,262 | 574,263 | u395010524 | python |
p02777 | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == t:
a -= 1
else:
b -= 1
print(a, b) | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
a -= 1
else:
b -= 1
print(a, b) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,264 | 574,265 | u259755734 | python |
p02777 | s, t = list(input().split())
s_num, t_num = map(int, input().split())
bad_string = input()
if bad_string == s:
print(s_num - 1, t_num)
elif bad_string == t_num:
print(s_num, t_num - 1)
else:
print(s_num, t_num)
| s, t = list(input().split())
s_num, t_num = map(int, input().split())
bad_string = input()
if bad_string == s:
print(s_num - 1, t_num)
elif bad_string == t:
print(s_num, t_num - 1)
else:
print(s_num, t_num)
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,277 | 574,278 | u347912669 | python |
p02777 | S,T=map(str,input.split())
s,t=map(int,input.split())
U=input()
if S==U:
print(s-1,t)
elif T==U:
print(s,t-1)
| S,T=map(str,input().split())
s,t=map(int,input().split())
U=input()
if S==U:
print(s-1,t)
elif T==U:
print(s,t-1)
| [
"call.add"
] | 574,279 | 574,280 | u869267486 | python |
p02777 | S,T=map(int,input().split())
A,B=map(int,input().split())
U=input()
if S==U:
print(A-1,B)
if T==U:
print(A,B-1) | S,T=input().split()
A,B=map(int,input().split())
U=input()
if S==U:
print(A-1,B)
if T==U:
print(A,B-1) | [
"call.remove",
"call.arguments.change"
] | 574,281 | 574,282 | u871934301 | python |
p02777 | S,T=map(input().split())
A,B=map(int,input().split())
U=input()
if S==U:
print(A-1,B)
if T==U:
print(A,B-1) | S,T=input().split()
A,B=map(int,input().split())
U=input()
if S==U:
print(A-1,B)
if T==U:
print(A,B-1) | [
"call.remove",
"call.arguments.change"
] | 574,283 | 574,282 | u871934301 | python |
p02777 | def getList():
return list(map(int, input().split()))
s,t = input().split()
a, b = getList()
u = input.strip()
if s == u:
print(a-1 ,b)
else:
print(a, b-1)
| def getList():
return list(map(int, input().split()))
s,t = input().split()
a, b = getList()
u = input().strip()
if s == u:
print(a-1 ,b)
else:
print(a, b-1) | [
"call.add"
] | 574,286 | 574,287 | u827202523 | python |
p02777 | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
a-=1
elif s==t:
b -=1
print(a, b) | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
a-=1
elif u==t:
b -=1
print(a, b) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,302 | 574,303 | u051401873 | python |
p02777 | S,T = map(input().split())
A,B = map(int,input().split())
U = input()
if U==S:
print (A-1,B);
else:
print (A,B-1);
| S,T = input().split()
A,B = map(int,input().split())
U = input()
if U==S:
print (A-1,B);
else:
print (A,B-1);
| [
"call.remove",
"call.arguments.change"
] | 574,304 | 574,305 | u620549327 | python |
p02777 | S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S:
print(S-1, T)
else:
print(S, T-1)
| S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S:
print(A-1, B)
else:
print(A, B-1)
| [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 574,306 | 574,307 | u767664985 | python |
p02777 | S, T = input().split()
a, b = map(int, input().spilt())
U = input()
if S==U: a-=1
else: b-=1
print(a, b) | S, T = input().split()
a, b = map(int, input().split())
U = input()
if S==U: a-=1
else: b-=1
print(a, b) | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 574,310 | 574,311 | u440566786 | python |
p02777 | S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S: A -= 1
else: B -= 1
print(A) | S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S: A -= 1
else: B -= 1
print(A,B) | [
"call.arguments.add"
] | 574,336 | 574,337 | u945140822 | python |
p02777 | a,b = input().split()
c,d = map(int,input().split())
t=input()
print(c-1 if t==a else a,d-1 if t==b else d) | a,b = input().split()
c,d = map(int,input().split())
t=input()
print(c-1 if t==a else c,d-1 if t==b else d) | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 574,345 | 574,346 | u064027771 | python |
p02777 | strings = input().split()
nums = list(map(int, input().split(" ")))
delete = input()
for i in range(2):
nums[i] = (nums[i] -1) if strings[i] == delete else nums[i]
print(nums) | strings = input().split()
nums = list(map(int, input().split(" ")))
delete = input()
for i in range(2):
nums[i] = (nums[i] -1) if strings[i] == delete else nums[i]
print(*nums) | [
"call.arguments.change"
] | 574,352 | 574,353 | u312748806 | python |
p02777 | S, T = input().split()
A,B = map(int,input().split())
U = input()
print(A,B)
if U == S:
A -= 1
print(A,B)
else:
B -= 1
print(A,B)
| S, T = input().split()
A,B = map(int,input().split())
U = input()
if U == S:
A -= 1
print(A,B)
else:
B -= 1
print(A,B) | [
"call.remove"
] | 574,365 | 574,366 | u932864155 | python |
p02777 | from sys import stdin
s, t = stdin.readline().rstrip().split()
a, b = [int(x) for x in stdin.readline().rstrip().split()]
u = stdin.readline().rstrip().split()
if (s == u):
a -= 1
if (t == u):
b -= 1
print(str(a) + " " + str(b)) | from sys import stdin
s, t = stdin.readline().rstrip().split()
a, b = [int(x) for x in stdin.readline().rstrip().split()]
u = stdin.readline().rstrip()
if (s == u):
a -= 1
if (t == u):
b -= 1
print(str(a) + " " + str(b)) | [
"call.remove"
] | 574,369 | 574,370 | u436664080 | python |
p02777 | n.m = input().split()
r,b = map(int,input().split())
t = input()
if n == t:
print(str(r-1) + ' ' + str(b))
else:
print(str(r) + ' ' + str(b-1))
| n,m = input().split()
r,b = map(int,input().split())
t = input()
if n == t:
print(str(r-1) + ' ' + str(b))
else:
print(str(r) + ' ' + str(b-1))
| [
"misc.typo",
"assignment.variable.change"
] | 574,388 | 574,389 | u951401193 | python |
p02777 | tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()
if S == U:
print(str(A-1) + " " + str(B))
else:
print(str(A) + " " + str(B))
| tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()
if S == U:
print(str(A-1) + " " + str(B))
else:
print(str(A) + " " + str(B-1))
| [
"expression.operation.binary.add"
] | 574,394 | 574,395 | u702914680 | python |
p02777 | tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()
if S == U:
print(str(A-1) + " " + str(B))
else:
print(str(B-1) + " " + str(A))
| tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()
if S == U:
print(str(A-1) + " " + str(B))
else:
print(str(A) + " " + str(B-1))
| [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"expression.operation.binary.remove"
] | 574,396 | 574,395 | u702914680 | python |
p02777 | tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()
if S == U:
print(str(A-1) + " " + str(B))
else:
print(str(B) + " " + str(A)) | tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()
if S == U:
print(str(A-1) + " " + str(B))
else:
print(str(A) + " " + str(B-1))
| [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 574,397 | 574,395 | u702914680 | python |
p02777 | #!/usr/bin/env python3
def main():
S, T = input().split()
A, B = map(int, input().split())
U = input().split()
if U == S:
A -= 1
else:
B -= 1
print(A, B)
main()
| #!/usr/bin/env python3
def main():
S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S:
A -= 1
else:
B -= 1
print(A, B)
main()
| [
"call.remove"
] | 574,415 | 574,416 | u284307352 | python |
p02777 | s = intput().split()
a = list(map(int, input().split()))
u = input()
if u == s[0]:
print(a[0]-1, a[1])
else:
print(a[0], a[1]-1) | s = input().split()
a = list(map(int, input().split()))
u = input()
if u == s[0]:
print(a[0]-1, a[1])
else:
print(a[0], a[1]-1) | [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 574,441 | 574,442 | u499832992 | python |
p02777 | s,t = input().split()
a,b = map(int,input().split())
#print(s,t)
#print(a,b)
u = input()
#print(u)
if s == u :
a = a - 1
elif s == t:
b = b - 1
print(a, b)
| s,t = input().split()
a,b = map(int,input().split())
#print(s,t)
#print(a,b)
u = input()
#print(u)
if s == u :
a = a - 1
elif t == u:
b = b - 1
print(a, b)
| [
"control_flow.branch.if.condition.change"
] | 574,449 | 574,450 | u350578302 | python |
p02777 | S, T = map(str, input().split())
A, B = map(int, input().split())
U = input(str)
if S == U:
print(A-1, end=" ")
print(B)
else:
print (A, end=" ")
print(B-1) | S, T = map(str, input().split())
A, B = map(int, input().split())
U = str(input())
if S == U:
print(A-1, end=" ")
print(B)
else:
print (A, end=" ")
print(B-1) | [
"call.add",
"assignment.value.change",
"call.arguments.change"
] | 574,460 | 574,461 | u960637522 | python |
p02777 | a,b = input().split()
A,B = input().split()
c = input()
a = str(a)
b = str(b)
A = int(A)
B = int(B)
c = str(c)
d = A - 1
D = B - 1
if c == a:
print(d,B)
elif c == b:
print(D,A) | a,b = input().split()
A,B = input().split()
c = input()
a = str(a)
b = str(b)
A = int(A)
B = int(B)
c = str(c)
d = A - 1
D = B - 1
if c == a:
print(d,B)
elif c == b:
print(A,D) | [
"call.arguments.change",
"call.arguments.add"
] | 574,465 | 574,466 | u054662964 | python |
p02777 | a,b = input().split()
A,B = input().split()
c = input()
a = str(a)
b = str(b)
A = int(A)
B = int(B)
c = str(c)
d = A - 1
D = B - 1
if c == a:
print(d)
elif c == b:
print(D) | a,b = input().split()
A,B = input().split()
c = input()
a = str(a)
b = str(b)
A = int(A)
B = int(B)
c = str(c)
d = A - 1
D = B - 1
if c == a:
print(d,B)
elif c == b:
print(A,D) | [
"call.arguments.add"
] | 574,467 | 574,466 | u054662964 | python |
p02777 | a, b=map(str,input().split())
c, d=map(int,input().split())
e=input()
f=str(e)
if e==f:
print(c-1,d)
else:
print(c,d-1)
| a, b=map(str,input().split())
c, d=map(int,input().split())
e=input()
f=str(e)
if a==f:
print(c-1,d)
else:
print(c,d-1)
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,470 | 574,471 | u711626986 | python |
p02777 | def I(): return int(input())
def MI(): return map(int, input().split())
def LMI(): return list(map(int, input().split()))
S, T = input().split()
A, B = MI()
U = input()
if U == S:
S -= 1
elif U == T:
B -= 1
print(A, B) | def I(): return int(input())
def MI(): return map(int, input().split())
def LMI(): return list(map(int, input().split()))
S, T = input().split()
A, B = MI()
U = input()
if U == S:
A -= 1
elif U == T:
B -= 1
print(A, B)
| [
"identifier.change"
] | 574,476 | 574,477 | u380772254 | python |
p02777 | s, _ = list(input().split())
a, b = list(map(int, input().split()))
u = input()
if s == u:
a -= 1
else:
b -= u
print(a, end=' ')
print(b) | s, _ = list(input().split())
a, b = list(map(int, input().split()))
u = input()
if s == u:
a -= 1
else:
b -= 1
print(a, end=' ')
print(b) | [
"identifier.replace.remove",
"literal.replace.add"
] | 574,492 | 574,493 | u316401642 | python |
p02777 | S, T = map(str, input().split())
A, B = map(int, input().split())
U = str(input())
if S==U:
print(A-1)
else:
print(B-1) | S, T = map(str, input().split())
A, B = map(int, input().split())
U = str(input())
if S==U:
print(A-1, B)
else:
print(A, B-1) | [
"call.arguments.add"
] | 574,498 | 574,499 | u054514819 | python |
p02777 | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == t:
a -= 1
else:
b -= 1
print(str(a) + " " + str(b)) | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
a -= 1
else:
b -= 1
print(str(a) + " " + str(b)) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,502 | 574,503 | u157874153 | python |
p02777 | def main():
s,t = list(input().split())
a,b = map(int,input().split())
ss = input()
if ss == s:
print(str(a-1) + ' ' + str(b))
return
else:
print(str(a) + ' ' + str(b))
if __name__=='__main__':
main()
| def main():
s,t = list(input().split())
a,b = map(int,input().split())
ss = input()
if ss == s:
print(str(a-1) + ' ' + str(b))
return
else:
print(str(a) + ' ' + str(b-1))
if __name__=='__main__':
main()
| [
"expression.operation.binary.add"
] | 574,506 | 574,507 | u321035578 | python |
p02777 | s, t = map(str, input().split())
a, b = map(int, input().split())
u = input()
if u == s:
a = a - 1
if u == t:
b = b - 1
print(a+" "+b)
| s, t = map(str, input().split())
a, b = map(int, input().split())
u = input()
if u == s:
a = a - 1
if u == t:
b = b - 1
print(str(a)+" "+str(b)) | [
"call.add",
"call.arguments.change"
] | 574,514 | 574,515 | u195210605 | python |
p02777 | s = input().split()
num = [int(i) for i in input().split()]
u = input()
num1 = num[0]
num2 = num[1]
if s[0] == u:
nums = num1 - 1
print("{} {}".format(nums, num1))
elif s[1] == u:
nums = num2 - 1
print("{} {}".format(num1, nums))
| s = input().split()
num = [int(i) for i in input().split()]
u = input()
num1 = num[0]
num2 = num[1]
if s[0] == u:
nums = num1 - 1
print("{} {}".format(nums, num2))
elif s[1] == u:
nums = num2 - 1
print("{} {}".format(num1, nums))
| [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 574,527 | 574,528 | u735335967 | python |
p02777 | # -*- coding: utf-8 -*-
import sys
import math
debug = False
def log(text):
if debug:
print(text)
def parse_input(lines_as_string = None):
global debug
lines = []
if lines_as_string is None:
debug = False
# for line in sys.stdin:
# lines.append(line)
lin... | # -*- coding: utf-8 -*-
import sys
import math
debug = False
def log(text):
if debug:
print(text)
def parse_input(lines_as_string = None):
global debug
lines = []
if lines_as_string is None:
debug = False
# for line in sys.stdin:
# lines.append(line)
lin... | [
"call.add",
"call.arguments.change"
] | 574,535 | 574,536 | u000557170 | python |
p02777 | s = list(input().split())
a = list(map(int, input().split()))
a[s.index(input())] -= 1
for i in a:
print(i, end = '') | s = list(input().split())
a = list(map(int, input().split()))
a[s.index(input())] -= 1
for i in a:
print(i, end = ' ') | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 574,537 | 574,538 | u617659131 | python |
p02777 | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase... | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase... | [
"call.remove"
] | 574,547 | 574,548 | u829735607 | python |
p02777 | s,t=input().split()
a,b=map(int,input().split())
u=input()
if u == t:
a -= 1
elif u == t:
b -= 1
print(a,b) | s,t=input().split()
a,b=map(int,input().split())
u=input()
if u == s:
a -= 1
elif u == t:
b -= 1
print(a,b) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 574,591 | 574,592 | u857070771 | python |
p02777 | a,b=input().split()
c,d=map(int,input().split())
e=int(input())
if e==a:
c-=1
else:
d-=1
print(c,d) | a,b=input().split()
c,d=map(int,input().split())
e=input()
if e==a:
c-=1
else:
d-=1
print(c,d)
| [
"call.remove",
"call.arguments.change"
] | 574,599 | 574,600 | u223555291 | python |
p02777 | S, T = input().split()
A, B = input().split()
U = input()
A, B = int(A), input(B)
if U == S:
A -= 1
elif U == T:
B -= 1
print(A, B) | S, T = input().split()
A, B = input().split()
U = input()
A, B = int(A), int(B)
if U == S:
A -= 1
elif U == T:
B -= 1
print(A, B) | [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 574,607 | 574,608 | u550708243 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.