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 |
|---|---|---|---|---|---|---|---|
p02775 | n = list(input())
n = [int(i) for i in n]
n.reverse()
l = len(n)
ans = 0
for i in range(l-1):
if (n[i]==5 and n[i+1]>=5) or n[i]>5:
n[i+1] += 1
ans += 10-n[i]
else:
ans += n[i]
ans += 9-n[-1] if n[-1]>5 else n[-1]
print(ans)
| n = list(input())
n = [int(i) for i in n]
n.reverse()
l = len(n)
ans = 0
for i in range(l-1):
if (n[i]==5 and n[i+1]>=5) or n[i]>5:
n[i+1] += 1
ans += 10-n[i]
else:
ans += n[i]
ans += 11-n[-1] if n[-1]>5 else n[-1]
print(ans)
| [
"literal.number.integer.change",
"expression.operation.binary.change"
] | 573,084 | 573,085 | u145950990 | python |
p02775 | import sys
input = sys.stdin.readline
Num_str = list(input().rstrip())
L = len(Num_str)
Num = []
for n in reversed(Num_str):
Num.append(int(n))
S = 0
up = False
for i, n in enumerate(Num):
if up:
n += 1
if n < 5:
S += n
up = False
elif n == 5:
S += 5
up = (i !=... | import sys
input = sys.stdin.readline
Num_str = list(input().rstrip())
L = len(Num_str)
Num = []
for n in reversed(Num_str):
Num.append(int(n))
S = 0
up = False
for i, n in enumerate(Num):
if up:
n += 1
if n < 5:
S += n
up = False
elif n == 5:
S += 5
up = (i !=... | [
"assignment.change"
] | 573,096 | 573,097 | u677523557 | python |
p02775 | import sys
input = sys.stdin.readline
Num_str = list(input().rstrip())
L = len(Num_str)
Num = []
for n in reversed(Num_str):
Num.append(int(n))
S = 0
up = False
for i, n in enumerate(Num):
if up:
n += 1
if n < 5:
S += n
up = False
elif n == 5:
S += 5
up = i != ... | import sys
input = sys.stdin.readline
Num_str = list(input().rstrip())
L = len(Num_str)
Num = []
for n in reversed(Num_str):
Num.append(int(n))
S = 0
up = False
for i, n in enumerate(Num):
if up:
n += 1
if n < 5:
S += n
up = False
elif n == 5:
S += 5
up = (i !=... | [
"assignment.change"
] | 573,098 | 573,097 | u677523557 | python |
p02775 | import sys
from collections import *
import heapq
import math
import bisect
from itertools import permutations,accumulate,combinations,product
from math import gcd
def input():
return sys.stdin.readline()[:-1]
mod=pow(10,9)+7
n=input()
# lst=[int(n[i]) for i in range(len(n))]
# for i in range(len(n)):
# lst.ap... | import sys
from collections import *
import heapq
import math
import bisect
from itertools import permutations,accumulate,combinations,product
from math import gcd
def input():
return sys.stdin.readline()[:-1]
mod=pow(10,9)+7
n=input()
# lst=[int(n[i]) for i in range(len(n))]
# for i in range(len(n)):
# lst.ap... | [
"assignment.change"
] | 573,101 | 573,102 | u654470292 | python |
p02775 | def main():
s = input().strip()
carry = 0
result = 0
for i in range(len(s) - 1, -1, -1):
carry, x = divmod(ord(s[i]) - ord("0") + carry, 10)
if x > 5 or (x == 5 and i > 0 and s[i - 1] >= "5"):
carry += 1
result += 10 - x
else:
result += x
p... | def main():
s = input().strip()
carry = 0
result = 0
for i in range(len(s) - 1, -1, -1):
carry, x = divmod(ord(s[i]) - ord("0") + carry, 10)
if x > 5 or (x == 5 and i > 0 and s[i - 1] >= "5"):
carry += 1
result += 10 - x
else:
result += x
r... | [] | 573,105 | 573,106 | u696703226 | python |
p02775 | l = list(map(int,input()))
l.reverse()
l.append(0)
l_copy = l.copy()
N = len(l)
pay = []
for i in range(N):
if l[i] == 5 and l[i+1]>5:
pay.append(0)
l[i+1] += 1
elif l[i] <= 5:
pay.append(l[i])
elif 10 > l[i] > 5:
pay.append(0)
l[i+1] += 1
elif l[i] == 10:
... | l = list(map(int,input()))
l.reverse()
l.append(0)
l_copy = l.copy()
N = len(l)
pay = []
for i in range(N):
if l[i] == 5 and l[i+1]>4:
pay.append(0)
l[i+1] += 1
elif l[i] <= 5:
pay.append(l[i])
elif 10 > l[i] > 5:
pay.append(0)
l[i+1] += 1
elif l[i] == 10:
... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 573,107 | 573,108 | u493130708 | python |
p02774 |
import numpy as np
def main():
N,K = map(int, input().split())
A = list(map(int, input().split()))
A = np.array(A)
A.sort()
zero = np.count_nonzero(A==0)
positive = A[A>0]
negative = A[A<0]
def count(x): # 積がx以下になるペアの個数を返す
ans = 0
if x >= 0:
ans += N*zero
... |
import numpy as np
def main():
N,K = map(int, input().split())
A = list(map(int, input().split()))
A = np.array(A)
A.sort()
zero = np.count_nonzero(A==0)
positive = A[A>0]
negative = A[A<0]
def count(x): # 積がx以下になるペアの個数を返す
ans = 0
if x >= 0:
ans += N*zero
... | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 573,137 | 573,138 | u464244643 | python |
p02774 | # -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict, deque
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permut... | # -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict, deque
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permut... | [
"call.add"
] | 573,141 | 573,142 | u334712262 | python |
p02774 | import numpy as np
from bisect import bisect_right as br
from bisect import bisect_left as bl
n,k=map(int,input().split())
a=np.sort(np.array(list((map(int,input().split())))))
q=len(a[a==0])
d=a[a<0]
e=a[a>0]
l,r=10**18,-10**18
while l-r>1:
t=(l+r)//2
p=0
if t>=0:
p+=q*n
p+=np.searchsorted(a,t/... | import numpy as np
from bisect import bisect_right as br
from bisect import bisect_left as bl
n,k=map(int,input().split())
a=np.sort(np.array(list((map(int,input().split())))))
q=len(a[a==0])
d=a[a<0]
e=a[a>0]
l,r=10**18,-10**18
while l-r>1:
t=(l+r)//2
p=0
if t>=0:
p+=q*n
p+=np.searchsorted(a,t/... | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 573,193 | 573,194 | u619819312 | 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) | [
"control_flow.branch.if.condition.change"
] | 573,225 | 573,226 | u185806788 | python |
p02777 | s, t = input().split()
a, b = map(int, input().split())
u = input().split()
if s == u:
print(a-1, b)
elif t == u:
print(a, b-1)
else:
print(a, b) | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
print(a-1, b)
elif t == u:
print(a, b-1)
else:
print(a, b) | [
"call.remove"
] | 573,227 | 573,228 | u720124072 | python |
p02777 | s,t,a,b,u=open(0).read().split()
if s==u:
print(int(a)-1)
elif t==u:
print(int(b)-1) | s,t,a,b,u=open(0).read().split()
if s==u:
print(int(a)-1,b)
elif t==u:
print(a,int(b)-1) | [
"call.arguments.add"
] | 573,231 | 573,232 | u311961196 | python |
p02777 | s,t = map(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.remove",
"call.arguments.change"
] | 573,245 | 573,246 | u175590965 | python |
p02777 | s, t = input().split()
a, b = map(int, input().split())
u = input()
if u == s:
print(s-1,t)
elif u == t:
print(s, t-1) | s, t = input().split()
a, b = map(int, input().split())
u = input()
if u == s:
print(a-1,b)
elif u == t:
print(a, b-1) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 573,248 | 573,249 | u853728588 | 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.add"
] | 573,254 | 573,255 | u507145838 | python |
p02777 | w = list(map(input().split()))
n = list(map(int, input().split()))
u = input()
if u == w[0]:
print(n[0]-1,n[1])
else:
print(n[0],n[1]-1) | w = list(input().split())
n = list(map(int, input().split()))
u = input()
if u == w[0]:
print(n[0]-1,n[1])
else:
print(n[0],n[1]-1) | [
"call.arguments.change"
] | 573,260 | 573,261 | u085329544 | python |
p02777 | S,T=map(int,input().split())
A,B=map(int,input().split())
U=input()
if U==S:
A=A-1
else:
B=B-1
print('{} {}'.format(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('{} {}'.format(A,B))
| [
"call.remove",
"call.arguments.change"
] | 573,266 | 573,267 | u962718741 | python |
p02777 | s=list(input().split())
a,b=map(int,input().split())
print(a,b-1 if s.index(input())==1 else a-1,b) | s=list(input().split())
a,b=map(int,input().split())
print(a,b-1) if s.index(input())==1 else print(a-1,b) | [
"call.arguments.change",
"call.add"
] | 573,270 | 573,271 | u446711904 | python |
p02777 | S,T=map(input().split())
a,b=mao(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.remove",
"call.arguments.change",
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 573,283 | 573,284 | u667694979 | python |
p02777 | s, t = input().split()
a, b =map(int, input().split())
x = input()
if x == a:
print(a - 1, b)
else:
print(a, b - 1) | s, t = input().split()
a, b =map(int, input().split())
x = input()
if x == s:
print(a - 1, b)
else:
print(a, b - 1)
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,305 | 573,306 | u802963389 | python |
p02777 | S,T=map(str,input().split())
A,B=map(str,input().split())
U=str(input())
if U==S:
A-=1
elif U==T:
B-=1
print(A, B)
| S,T=map(str,input().split())
A,B=map(int,input().split())
U=str(input())
if U==S:
A-=1
elif U==T:
B-=1
print(A, B)
| [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 573,311 | 573,312 | u438189153 | python |
p02777 | S,T = input().split()
A,B = map(int,input().split())
U = input().strip()
if U==S:
print(A-1)
else:
print(B-1) | S,T = input().split()
A,B = map(int,input().split())
U = input().strip()
if U==S:
print(A-1,B)
else:
print(A,B-1) | [
"call.arguments.add"
] | 573,313 | 573,314 | u644907318 | python |
p02777 | S, T = "red", "blue"
A, B = 3, 4
U = "red"
S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()
def calculate(s, t, a, b, u):
if u == "s":
print("{} {}".format((a - 1), b))
else:
print("{} {}".format(a, (b - 1)))
calculate(S, T, A, B, U)
| S, T = "red", "blue"
A, B = 3, 4
U = "red"
S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()
def calculate(s, t, a, b, u):
if u == s:
print("{} {}".format((a - 1), b))
else:
print("{} {}".format(a, (b - 1)))
calculate(S, T, A, B, U)
| [
"control_flow.branch.if.condition.change"
] | 573,320 | 573,321 | u788068140 | python |
p02777 | def main():
s,t = input().split()
a,b = int(input().split())
u = input()
if s == u:
a -= 1
else:
b -= 1
print(a,b)
main() | def main():
s,t = input().split()
a,b = map(int,input().split())
u = input()
if s == u:
a -= 1
else:
b -= 1
print(a,b)
main() | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.add"
] | 573,326 | 573,327 | u962609087 | python |
p02777 | a,b = input().split
c,d = map(int,input().split())
e = input()
if a == e:
print("{} {}".format(c-1,d))
else:
print("{} {}".format(c,d-1)) | a,b = input().split()
c,d = map(int,input().split())
e = input()
if a == e:
print("{} {}".format(c-1,d))
else:
print("{} {}".format(c,d-1))
| [
"call.add"
] | 573,328 | 573,329 | u283751459 | python |
p02777 | import sys
s, t = map(str, sys.stdin.readline().split())
a, b = map(int, sys.stdin.readline().split())
u = sys.stdin.readline()
if s == u:
print(a-1, b)
else:
print(a, b-1)
| import sys
s, t = map(str, sys.stdin.readline().split())
a, b = map(int, sys.stdin.readline().split())
u = sys.stdin.readline().rstrip()
if s == u:
print(a-1, b)
else:
print(a, b-1)
| [
"call.add"
] | 573,330 | 573,331 | u823885866 | python |
p02777 | S, T = map(str, input().split())
A, B = map(int, input().split())
U = str(input())
if U == S:
print(A - 1)
else:
print(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.arguments.add"
] | 573,332 | 573,333 | u573900545 | python |
p02777 | S, T = input().split()
A, B = map(int,iunput().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) | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 573,334 | 573,335 | u047931063 | python |
p02777 | S, T = input().split()
A, B = 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",
"call.arguments.change"
] | 573,336 | 573,337 | u000623733 | python |
p02777 | a = [i in input().split()]
nums = [int(i) in input().split()]
thr = input()
if(thr == a[0]):
nums[0] -= 1
else:
nums[1] -= 1
print(nums[0],nums[1]) | a = [i for i in input().split()]
nums = [int(i) for i in input().split()]
thr = input()
if(thr == a[0]):
nums[0] -= 1
else:
nums[1] -= 1
print(nums[0],nums[1]) | [] | 573,338 | 573,339 | u960342439 | python |
p02777 | s,t = input().split()
a,b= map(int,input().split())
u = input()
if u in s:
print(a-1)
if u in t:
print(b-1) | s,t = input().split()
a,b= map(int,input().split())
u = input()
if u in s:
print(a-1,b)
if u in t:
print(a,b-1)
| [
"call.arguments.add"
] | 573,342 | 573,343 | u273242084 | python |
p02777 | s,a,u=open(0);i=s.find(u)<1;print(int(a[0])-i,int(a[2])-1+i) | s,a,u=open(0)
i=s.find(u)<1
print(int(a[:2])-i,int(a[2:])-1+i) | [
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 573,344 | 573,345 | u729133443 | python |
p02777 | s,t=map(input().split())
a,b=map(int,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)
| [
"call.arguments.add"
] | 573,346 | 573,347 | u678505520 | python |
p02777 | s,t = input().split()
a,b = map(int, input().split())
u = input()
dic = {s: a, t: b}
dic[u] -= 1
print(dic[s] + ' ' + dic[t]) | s,t = input().split()
a,b = map(int, input().split())
u = input()
dic = {s: a, t: b}
dic[u] -= 1
print(str(dic[s]) + ' ' + str(dic[t])) | [
"call.arguments.add",
"call.arguments.change",
"call.add"
] | 573,359 | 573,360 | u973108807 | python |
p02777 | S, T = map(str,input().split())
A, B = map(int, input().split())
U = str(input())
if S == T:
A -= 1
else:
B -= 1
print(A, B) | S, T = map(str,input().split())
A, B = map(int, input().split())
U = str(input())
if S == U:
A -= 1
else:
B -= 1
print(A, B) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,370 | 573,371 | u491330513 | python |
p02777 | a,b=map(str,input().split())
c.d=map(int,input().split())
e=str(input())
if a==e:
print(c-1,d)
else:
print(c,d-1)
| a,b=map(str,input().split())
c,d=map(int,input().split())
e=str(input())
if a==e:
print(c-1,d)
else:
print(c,d-1)
| [
"misc.typo",
"assignment.variable.change"
] | 573,372 | 573,373 | u115877451 | python |
p02777 | a,b=map(str,input().split())
c.d=map(int,input().split())
e=input()
if a==e:
print(c-1,d)
else:
print(c,d-1)
| a,b=map(str,input().split())
c,d=map(int,input().split())
e=str(input())
if a==e:
print(c-1,d)
else:
print(c,d-1)
| [
"misc.typo",
"assignment.variable.change",
"call.add",
"call.arguments.change"
] | 573,374 | 573,373 | u115877451 | python |
p02777 | a,b=map(str,input().split())
c.d=map(int,input().split())
e=input()
if c==e:
print(c-1,d)
else:
print(c,d-1)
| a,b=map(str,input().split())
c,d=map(int,input().split())
e=str(input())
if a==e:
print(c-1,d)
else:
print(c,d-1)
| [
"misc.typo",
"assignment.variable.change",
"call.add",
"call.arguments.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,375 | 573,373 | u115877451 | python |
p02777 | S,T = map(input().split())
A,B = map(int,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)
| [
"call.arguments.add"
] | 573,382 | 573,383 | u552201227 | 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"
] | 573,396 | 573,397 | u039189422 | python |
p02777 | s,t = list(input().split())
a,b = list(map(int, input().split()))
if input() == s:
print(a-1)
else:
print(b-1) | s,t = list(input().split())
a,b = list(map(int, input().split()))
if input() == s:
print(a-1,b)
else:
print(a,b-1)
| [
"call.arguments.add"
] | 573,402 | 573,403 | u674052742 | python |
p02777 | #入力値を格納
s,t = map(str,input().split())
a,b = map(int,input().split())
u = input()
#個数を計算
if s == t:
a = a - 1
else:
b = b - 1
#結果を表示
print("{} {}".format(a,b))
| #入力値を格納
s,t = map(str,input().split())
a,b = map(int,input().split())
u = input()
#個数を計算
if s == u:
a = a - 1
else:
b = b - 1
#結果を表示
print("{} {}".format(a,b))
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,404 | 573,405 | u953274507 | python |
p02777 | #!usr/bin/env python3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect
def LI(): return [int(x) for x in sys.stdin.buffer.readline().split()]
def I(): return int(sys.stdin.buffer.readline())
def LS():return... | #!usr/bin/env python3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations, accumulate
import sys
import math
import bisect
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS():return [list(x) for ... | [] | 573,416 | 573,417 | u585482323 | python |
p02777 | S,T=map(str,input().split())
A,B=map(int,input().split())
U=input()
if S==U:
A-=1
else:
B-=1
print(A<B)
| S,T=map(str,input().split())
A,B=map(int,input().split())
U=input()
if S==U:
A-=1
else:
B-=1
print(A,B)
| [
"call.arguments.change",
"io.output.change"
] | 573,425 | 573,426 | u963944915 | python |
p02777 | s,t=input().split()
a,b=(int,input().split())
u=input()
if s==u:
print (a-1,b)
elif 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)
elif t==u:
print(a,b-1)
| [
"call.add"
] | 573,432 | 573,433 | u350093546 | python |
p02777 | s, t = map(str, input().split())
a, b = map(int, input().split())
u = str(input())
if u==s:
print('{}, {}' .format(a-1, b))
else:
print('{}, {}'.format(a, b-1)) | s, t = map(str, input().split())
a, b = map(int, input().split())
u = str(input())
if u==s:
print('{} {}' .format(a-1, b))
else:
print('{} {}'.format(a, b-1)) | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 573,439 | 573,440 | u137226361 | python |
p02777 | S,T=map(lambda x: x, input().split())
A,B=int(input().split())
U=input()
L=[(S,A),(T,B)]
for l in L:
x,y=l
if x==U:
print(y-1, end=" ")
else:
print(y, end=" ") | S,T=map(lambda x: x, input().split())
A,B=map(int,input().split())
U=input()
L=[(S,A),(T,B)]
for l in L:
x,y=l
if x==U:
print(y-1, end=" ")
else:
print(y, end=" ") | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.add"
] | 573,448 | 573,449 | u784022244 | python |
p02777 | s,t=map(str,input().split())
a,b=map(int,input().split())
ss=input()
if ss=="s":
a-=1
else:
b-=1
print(a,b) | s,t=map(str,input().split())
a,b=map(int,input().split())
ss=input()
if ss==s:
a-=1
else:
b-=1
print(a,b) | [
"control_flow.branch.if.condition.change"
] | 573,452 | 573,453 | u017415492 | python |
p02777 | S, T = map(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.remove",
"call.arguments.change"
] | 573,464 | 573,465 | u873736356 | python |
p02777 | s,t =map(str,input().split())
a,b =map(int,input().split())
u=input()
if u==s:
print(a-1)
else:
print(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) | [
"call.arguments.add"
] | 573,468 | 573,469 | u656919695 | python |
p02777 | s,t = map(int,input().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) | [
"call.remove",
"call.arguments.change"
] | 573,470 | 573,471 | u831311378 | 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"
] | 573,489 | 573,490 | u190873802 | 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"
] | 573,493 | 573,494 | u165436807 | 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) | [
"control_flow.branch.if.condition.change"
] | 573,523 | 573,524 | u165268875 | python |
p02777 | S, T = int, input().split()
A, B = map(int, input().split())
U = input()
ans = [A, B]
if U == S:
ans[0] = A - 1
else:
ans[1] = B - 1
print(" ".join(map(str, ans)))
| S, T = input().split()
A, B = map(int, input().split())
U = input()
ans = [A, B]
if U == S:
ans[0] = A - 1
else:
ans[1] = B - 1
print(" ".join(map(str, ans)))
| [] | 573,525 | 573,526 | u186121428 | python |
p02777 | s, t = map(input().split())
a, b = map(int, 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) | [
"call.arguments.add"
] | 573,541 | 573,542 | u200228637 | 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(a, 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(a, b) | [
"control_flow.branch.if.condition.change"
] | 573,562 | 573,563 | u223133214 | python |
p02777 | (s,t),(a,b),u=input().split(),map(int,input().split()),input();print(a-(s==u),b-(t--u)) | (s,t),(a,b),u=input().split(),map(int,input().split()),input();print(a-(s==u),b-(t==u)) | [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"expression.operation.unary.arithmetic.remove"
] | 573,572 | 573,573 | u570944601 | python |
p02777 | (s,t)=input().split()
a=input()
(n,m)=list(map(int,a))
u=input()
if u==s:
print(n-1,m)
elif u==t:
print(n,m-1)
| (s, t) = input().split()
a = input().split()
(n, m) = list(map(int, a))
u = input()
if u == s:
print(n - 1, m)
elif u == t:
print(n, m - 1) | [
"call.add"
] | 573,578 | 573,579 | u907446975 | python |
p02777 | s, t = input().split()
a, b = map(int, input().split())
u = input()
if u == s:
a -= 1
if u == s:
b -= 1
print(a, b)
| s, t = input().split()
a, b = map(int, input().split())
u = input()
if u == s:
a -= 1
if u == t:
b -= 1
print(a, b)
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,586 | 573,587 | u170183831 | python |
p02777 | s, t = input().split(' ')
a, b = map(int, input().split(' '))
u = input()
if u == s:
print(a - 1)
elif u == t:
print(b - 1)
| s, t = input().split(' ')
a, b = map(int, input().split(' '))
u = input()
if u == s:
print(a - 1, b)
elif u == t:
print(a, b - 1)
| [
"call.arguments.add"
] | 573,591 | 573,592 | u610326327 | python |
p02777 | A = input()
a,b = (A.split(' '))
B = input()
c,d = (B.split(' '))
e = int(c)
f = int(d)
C = input()
if A == C:
print('{} {}'.format(e-1,f))
else:
print('{} {}'.format(e,f-1))
| A = input()
a,b = (A.split(' '))
B = input()
c,d = (B.split(' '))
e = int(c)
f = int(d)
C = input()
if a == C:
print('{} {}'.format(e-1,f))
else:
print('{} {}'.format(e,f-1))
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,593 | 573,594 | u514118270 | python |
p02777 | _S, _T = input().split()
A, B = list(map(lambda x:int(x), input().split()))
U = input()
if U == A:
is_type_A = True
else:
is_type_A = False
if is_type_A:
print(A - 1, B)
else:
print(A, B-1) | _S, _T = input().split()
A, B = list(map(lambda x:int(x), input().split()))
U = input()
if U == _S:
is_type_A = True
else:
is_type_A = False
if is_type_A:
print(A - 1, B)
else:
print(A, B-1) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,597 | 573,598 | u378782369 | python |
p02777 | _S, _T = input().split()
A, B = list(map(lambda x:int(x)), input().split())
U = input()
if U == A:
is_type_A = True
else:
is_type_A = False
if is_type_A:
print(A - 1, B)
else:
print(A, B-1) | _S, _T = input().split()
A, B = list(map(lambda x:int(x), input().split()))
U = input()
if U == _S:
is_type_A = True
else:
is_type_A = False
if is_type_A:
print(A - 1, B)
else:
print(A, B-1) | [
"call.arguments.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,599 | 573,598 | u378782369 | python |
p02777 | M = [input() for i in range(3)]
M[0] = M[0].split()
s = str(M[0][0])
t = str(M[0][1])
M[1] = M[1].split()
a = int(M[1][0])
b = int(M[1][0])
U = str(M[2])
if s == U:
a -= 1
else:
b -= 1
print(str(a) + ' ' + str(b)) | M = [input() for i in range(3)]
M[0] = M[0].split()
s = str(M[0][0])
t = str(M[0][1])
M[1] = M[1].split()
a = int(M[1][0])
b = int(M[1][1])
U = str(M[2])
if s == U:
a -= 1
else:
b -= 1
print(str(a) + ' ' + str(b))
| [
"literal.number.integer.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 573,602 | 573,603 | u749512407 | python |
p02777 | a, b = input().split()
c, d = map(int, input().split())
e = input()
if a == e:
print("{} {}".format(c-1,d))
if b == e:
print("{} {}".format(c-1,d)) | a, b = input().split()
c, d = map(int, input().split())
e = input()
if a == e:
print("{} {}".format(c-1,d))
if b == e:
print("{} {}".format(c,d-1)) | [
"expression.operation.binary.remove"
] | 573,620 | 573,621 | u303739137 | python |
p02777 | s,t=input().split()
a,b=map(int,input().split())
u=input()
if s==u:
print(a-1,b)
elif s==t:
print(a,b-1) | s,t=input().split()
a,b=map(int,input().split())
u=input()
if u==s:
print(a-1,b)
elif u==t:
print(a,b-1) | [
"control_flow.branch.if.condition.change",
"identifier.change"
] | 573,628 | 573,629 | u153259685 | python |
p02777 | n,t = input().split()
a,b = map(int,input().split())
print(a)
u = input()
if u == n:
print(a-1,b)
else:
print(a,b-1) | n,t = input().split()
a,b = map(int,input().split())
u = input()
if u == n:
print(a-1,b)
else:
print(a,b-1) | [
"call.remove"
] | 573,634 | 573,635 | u524534026 | python |
p02777 | S, T = input().split()
A, B = map(int, input().split())
U = int(input())
if S == U:
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 S == U:
print (str(A-1)+" "+str(B))
else:
print (str(A)+" "+str(B-1)) | [
"call.remove",
"call.arguments.change"
] | 573,644 | 573,645 | u523957440 | python |
p02777 | a, b = input().split()
a1, b1 = list(map(int, input().split()))
print(str(a1) + " " + str(b1 - 1) if input() == b else str(a1 - 1) + " " + b1) | a, b = input().split()
a1, b1 = list(map(int, input().split()))
print(str(a1) + " " + str(b1 - 1) if input() == b else str(a1 - 1) + " " + str(b1)) | [
"call.add",
"call.arguments.change"
] | 573,648 | 573,649 | u057993957 | python |
p02777 | a,b = input().split()
x,y = int(input().split())
k = input()
if a == k:
print(x-1,y)
else:
print(x,y-1)
| a,b = input().split()
x,y = map(int,input().split())
k = input()
if a == k:
print(x-1,y)
else:
print(x,y-1)
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.add"
] | 573,652 | 573,653 | u652656291 | python |
p02777 | a,b = input().split()
x,y = map(int,input().split())
k = int(input())
if a == k:
print(x-1,y)
else:
print(x,y-1)
| a,b = input().split()
x,y = map(int,input().split())
k = input()
if a == k:
print(x-1,y)
else:
print(x,y-1)
| [
"call.remove",
"call.arguments.change"
] | 573,654 | 573,653 | u652656291 | python |
p02777 | S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()
if U == S :
ans = A - 1
else :
ans = B - 1
print(ans) | S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()
if U == S :
A = A - 1
else :
B = B - 1
print(A, B) | [
"assignment.variable.change",
"identifier.change",
"call.arguments.change",
"io.output.change",
"call.arguments.add"
] | 573,665 | 573,666 | u453623947 | python |
p02777 | s,t = input().split()
a,b = (int(x) for x in input().split())
u = input()
if u==s:
print(a-1)
elif u==t:
print(b-1) | s,t = input().split()
a,b = (int(x) for x in input().split())
u = input()
if u==s:
print(a-1 ,b)
elif u==t:
print(a ,b-1) | [
"call.arguments.add"
] | 573,673 | 573,674 | u018984506 | python |
p02777 | S, T = map(int, input().split())
A, B = map(int, input().split())
if input() == S:
print(A-1, B)
else:
print(A, B-1) | S, T = input().split()
A, B = map(int, input().split())
if input() == S:
print(A-1, B)
else:
print(A, B-1) | [
"call.remove",
"call.arguments.change"
] | 573,690 | 573,691 | u170324846 | python |
p02777 | S,T = (x for x in input().split())
A,B = map(int,input().split())
U = input()
if U ==S:
print(A-1,B)
elif U ==S:
print(A,B-1) | S,T = (x for x in input().split())
A,B = map(int,input().split())
U = input()
if U ==S:
print(A-1,B)
elif U ==T:
print(A,B-1) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 573,692 | 573,693 | u250828304 | python |
p02777 | n = input()
(s,t) = n.split()
m = input()
(a,b)=m.split()
k = input()
if k is s:
a_1 = int(a) - 1
print(str(a_1)+' '+ b)
else:
b_1 = int(b) -1
print(a +' '+str( b_1))
| n = input()
(s,t) = n.split()
m = input()
(a,b)=m.split()
k = input()
if k == s:
a_1 = int(a) - 1
print(str(a_1)+' '+ b)
else:
b_1 = int(b) -1
print(a +' '+str( b_1))
| [
"control_flow.branch.if.condition.change"
] | 573,705 | 573,706 | u224554402 | python |
p02777 | def resolve():
s,t = input().split()
a,b = map(int,input().split())
u = input()
print(a-(s==u),b-(t==u))
reoslve() | def resolve():
s,t = input().split()
a,b = map(int,input().split())
u = input()
print(a-(s==u),b-(t==u))
resolve() | [
"identifier.change",
"call.function.change"
] | 573,713 | 573,714 | u405733072 | python |
p02777 | S,T = list(input().split())
A,B = list(map(int,input().split()))
U = input()
if S==U:
A-=1
elif S==T:
B-=1
print(A,B) | S,T = list(input().split())
A,B = list(map(int,input().split()))
U = input()
if S == U:
A-=1
elif T == U:
B-=1
print(A,B) | [
"control_flow.branch.if.condition.change"
] | 573,739 | 573,740 | u465101448 | python |
p02777 | s,t=input().split()
a,b=map(int,input().split())
u=input().split()
if s==u:
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 s == u:
print(str(a-1)+" "+str(b))
else:
print(str(a)+" "+str(b-1))
| [
"call.remove"
] | 573,746 | 573,747 | u057362336 | python |
p02777 | s,t = input().split()
a,b = map(int,input().split())
u = input()
if u == s:
print(a-1)
else:
print(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.arguments.add"
] | 573,759 | 573,760 | u904995051 | python |
p02777 | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
a -= 1
elif t == u:
b -= 0
print(a, b) | s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
a -= 1
elif t == u:
b -= 1
print(a, b) | [
"literal.number.integer.change"
] | 573,763 | 573,764 | u307516601 | python |
p02777 | import sys
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
s,t = [i.rstrip() for i in readline().split()]
a,b = [int(i) for i in readline().split()]
u = readline()
if u == s:
print(a-1, b)
else:
print(a, b-1) | import sys
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
s,t = [i.rstrip() for i in readline().split()]
a,b = [int(i) for i in readline().split()]
u = readline().rstrip()
if u == s:
print(a-1, b)
else:
print(a, b-1) | [
"call.add"
] | 573,765 | 573,766 | u307516601 | python |
p02777 | s,t = map(str,input().split())
a,b = map(int,input().split())
u = int(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) | [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 573,775 | 573,776 | u620846115 | python |
p02777 | s,t = map(str,input().split())
a,b = map(str,input().split())
u = str(input())
if(u==s):
print(a-1,b)
elif(u==t):
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)
elif(u==t):
print(a,b-1)
| [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 573,779 | 573,780 | u655048024 | python |
p02777 | a,b=input().split()
ST={}
ST[a], ST[b] = map(int, input().split())
ST[input()]-=1
for k,v in ST.items():
print(v,end='') | a,b=input().split()
ST={}
ST[a], ST[b] = map(int, input().split())
ST[input()]-=1
for k,v in ST.items():
print(v,end=' ')
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 573,781 | 573,782 | u539367121 | python |
p02777 | a,b=input().split()
c,d=input().split()
e=input()
c=int(c)
d=int(d)
if a==e:
print(c-1)
else:
print(d-1) | a,b=input().split()
c,d=input().split()
e=input()
c=int(c)
d=int(d)
if a==e:
print(c-1,d)
else:
print(c,d-1) | [
"call.arguments.add"
] | 573,783 | 573,784 | u244836567 | python |
p02777 | S,T=map(input().split())
A,B=map(int,input().split())
U=input()
if U==S:
A=A-1
else:
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
else:
B=B-1
print(A,B) | [
"call.arguments.add"
] | 573,785 | 573,786 | u827261928 | 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 U == S:
print (A-1,B)
else:
print (A,B-1) | [
"assignment.value.change",
"call.arguments.change"
] | 573,787 | 573,788 | u316603606 | 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 U == S:
print (A-1,B)
else:
print (A,B-1) | [
"assignment.value.change"
] | 573,789 | 573,788 | u316603606 | python |
p02777 | N_dict = {i:0 for i in list(map(str,input().split()))}
N_List = list(map(int,input().split()))
ct = 0
for i in N_dict.keys():
N_dict[i] = N_List[0]
ct += 1
N_dict[str(input())] -= 1
print(" ".join(list(map(str,N_dict.values()))))
| N_dict = {i:0 for i in list(map(str,input().split()))}
N_List = list(map(int,input().split()))
ct = 0
for i in N_dict.keys():
N_dict[i] = N_List[ct]
ct += 1
N_dict[str(input())] -= 1
print(" ".join(list(map(str,N_dict.values()))))
| [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change"
] | 573,807 | 573,808 | u773686010 | python |
p02777 | N_dict = {i:0 for i in list(map(str,input().split()))}
N_List = list(map(int,input().split()))
ct = 0
for i in N_dict.keys():
N_dict[i] = N_List[0]
ct += 1
N_dict[str(input())] -= 1
" ".join(list(map(str,N_dict.values())))
| N_dict = {i:0 for i in list(map(str,input().split()))}
N_List = list(map(int,input().split()))
ct = 0
for i in N_dict.keys():
N_dict[i] = N_List[ct]
ct += 1
N_dict[str(input())] -= 1
print(" ".join(list(map(str,N_dict.values()))))
| [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"call.add",
"call.arguments.change"
] | 573,809 | 573,808 | u773686010 | python |
p02777 |
# ABC154
#A Remaining balls
s, t = map(input().split())
a, b = map(int, input().split())
u = input()
if s == u:
a = a - 1
else:
b = b -1
print(a, b)
| # ABC154
#A Remaining balls
s, t = map(str,input().split())
a, b = map(int, input().split())
u = input()
if s == u:
a = a - 1
else:
b = b -1
print(a, b)
| [
"call.arguments.add"
] | 573,812 | 573,813 | u987637902 | python |
p02777 | S,T = input().split()
A,B = int(input().split())
U = input()
if U == S:
print(A-1,B)
elif U == T:
print(A,B-1)
| S,T = input().split()
A,B = map(int,input().split())
U = input()
if U == S:
print(A-1,B)
elif U == T:
print(A,B-1)
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.add"
] | 573,823 | 573,824 | u921632705 | python |
p02777 | s, t = input().split()
a, b = list(map(int, input, split()))
u = input()
if u == s:
print("{} {}".format(a-1, b))
else:
print("{} {}".format(a, b-1))
| s, t = input().split()
a, b = list(map(int, input().split()))
u = input()
if u == s:
print("{} {}".format(a-1, b))
else:
print("{} {}".format(a, b-1))
| [
"assignment.value.change",
"call.arguments.change"
] | 573,829 | 573,830 | u162612857 | 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))
elif T==U:
print(str(S)+' '+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))
elif T==U:
print(str(A)+' '+str(B-1)) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 573,835 | 573,836 | u409814604 | python |
p02777 | S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S:
A -= 1
elif U == T:
B -= 1
| 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) | [
"call.add"
] | 573,841 | 573,842 | u226082503 | python |
p02777 | S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S:
A -= 1
elif U == B:
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"
] | 573,843 | 573,842 | u226082503 | python |
p02777 | def resolve():
S, T = input().split()
A, B = map(int, input().split())
U = input()
print(U)
if S == U:
A -= 1
else:
B -= 1
print(str(A) + " " + str(B))
if __name__ == "__main__":
resolve() | def resolve():
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__":
resolve() | [
"call.remove"
] | 573,859 | 573,860 | u644546699 | python |
p02777 | def resolve():
S, T = input().split()
A, B = map(int, input().split())
U = input().split()
if S == U:
A -= 1
else:
B -= 1
print(str(A) + " " + str(B))
if __name__ == "__main__":
resolve() | def resolve():
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__":
resolve() | [
"call.remove"
] | 573,861 | 573,860 | u644546699 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.