Datasets:

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
p02681
n=input() k=input() y=len(k) s=k[:y] if len(n)==y-1 and s==k: print("Yes") else: print("No")
n=input() k=input() y=len(n) s=k[:y] if len(k)==y+1 and s==n: print("Yes") else: print("No")
[ "assignment.value.change", "identifier.change", "call.arguments.change", "control_flow.branch.if.condition.change", "misc.opposites", "expression.operator.arithmetic.change" ]
405,289
405,288
u005517181
python
p02681
A = input() B = input() C = B[:len(B)-2] if A == C: D = "Yes" else: D = "No" print(D)
A = input() B = input() C = B[:len(B)-1] if A == C: D = "Yes" else: D = "No" print(D)
[ "literal.number.integer.change", "assignment.value.change", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
405,299
405,300
u317533286
python
p02681
s = input() t = input() print(s, t) if (s == t[0:(len(t))-1]) and (len(t) - len(s) == 1): print("Yes") else: print("No") #print(s[0:(len(s))])
s = input() t = input() if (s == t[0:(len(t))-1]) and (len(t) - len(s) == 1): print("Yes") else: print("No") #print(s[0:(len(s))])
[ "call.remove" ]
405,304
405,305
u562791958
python
p02681
S = input() T = input() T = T[:-1] if S == T : print('yes') else : print('no')
S = input() T = input() T = T[:-1] if S == T : print('Yes') else : print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,317
405,318
u485664232
python
p02681
s=input() t=input() if s[1:len(s)]==t[1:len(s)]: print('Yes') else: print('No')
s=input() t=input() if s[0:len(s)]==t[0:len(s)]: print('Yes') else: print('No')
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
405,333
405,334
u940402366
python
p02681
a=input() b=input() if a in b: if a==b[0:-1]: print("Yes") else: print("No")
a=input() b=input() if a==b[0:-1]: print("Yes") else: print("No")
[]
405,349
405,350
u624455250
python
p02681
a=input() b=input() if a in b: if a==b[0:-2]: print("Yes") else: print("No")
a=input() b=input() if a==b[0:-1]: print("Yes") else: print("No")
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
405,351
405,350
u624455250
python
p02681
s = input() t = input() if (s is t[:-1]) and (len(s) + 1 is (len(t))): print('Yes') else: print('No')
s = input() t = input() if (s == t[:-1]) and ((len(s) + 1) is len(t)): print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
405,364
405,365
u543489264
python
p02681
S = input() T = input() cond = (1 <= len(S) and len(S) <= 10) and S[:-1] == T[:-1] print('Yes' if cond else 'No')
S = input() T = input() cond = (1 <= len(S) and len(S) <= 10) and S == T[:-1] print('Yes' if cond else 'No')
[]
405,374
405,375
u840155763
python
p02681
S = input() T = input() if S in T: print('Yes') else: print('No')
S = input() T = input() if S in T[:-1]: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
405,390
405,391
u847727454
python
p02681
S = input() T = input() if len(T) == len(S) + 1: if T.startswith(S): print('Yes') else: print('No')
S = input() T = input() if len(T) == len(S) + 1 and T.startswith(S): print('Yes') else: print('No')
[]
405,394
405,395
u729836751
python
p02681
s = input() t = input() if t[:-2] == s and len(t) - 1 == len(s): print("Yes") else: print("No")
s = input() t = input() if t[:-1] == s and len(t) - 1 == len(s): print('Yes') else: print('No')
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
405,406
405,407
u862910769
python
p02681
######ANSDEFINE####### no = "NO" yes = "Yes" #########END########## S = input() T = input() sl = list(S) tl = list(T) Slen = len(S) + 1 Tlen = len(T) if Slen == Tlen: if sl == tl[0:-1]: print(yes) else: print(no) else: print(no)
######ANSDEFINE####### no = "No" yes = "Yes" #########END########## S = input() T = input() sl = list(S) tl = list(T) Slen = len(S) + 1 Tlen = len(T) if Slen == Tlen: if sl == tl[0:-1]: print(yes) else: print(no) else: print(no)
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
405,415
405,416
u096025032
python
p02681
import itertools import math from collections import defaultdict def input_ints(): return list(map(int, input().split())) def solve(): s = input() t = input() print('Yes' if s[:len(t)] == t else 'No') if __name__ == '__main__': solve()
import itertools import math from collections import defaultdict def input_ints(): return list(map(int, input().split())) def solve(): s = input() t = input() print('Yes' if t[:len(s)] == s else 'No') if __name__ == '__main__': solve()
[ "identifier.change", "call.arguments.change", "io.output.change", "variable_access.subscript.index.change" ]
405,423
405,424
u016572066
python
p02681
S = list(input()) T = list(input()) cnt = 0 for i in range(len(S)): if S[i] == T[i]: continue else: print('No') cnt = 1 if cnt == 0: print('Yes')
S = list(input()) T = list(input()) cnt = 0 for i in range(len(S)): if S[i] == T[i]: continue else: print('No') cnt = 1 break if cnt == 0: print('Yes')
[ "control_flow.break.add" ]
405,429
405,430
u331997680
python
p02681
s = input() t = input() removed_t = t[:len(t) - 1] print(removed_t) if s == removed_t: print('Yes') else: print('No')
s = input() t = input() removed_t = t[:len(t) - 1] if s == removed_t: print('Yes') else: print('No')
[ "call.remove" ]
405,431
405,432
u683391968
python
p02681
S=input() T=input() if T.startswith(S): print(Yes) else: print(No)
S=input() T=input() if T.startswith(S): print("Yes") else: print("No")
[ "call.arguments.change" ]
405,463
405,464
u613233323
python
p02681
s = input() t = input() if s == t[0:len(s)]: print('yes') else: print('no')
s = input() t = input() if s == t[0:len(s)]: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,479
405,480
u880850253
python
p02681
s1 = input() s2 = input() def check(s1,s2): if len(s1)+1 != len(s2): print('No') return for i in range(len(s1)): if s1[i] != s2[1]: print('No') return print('Yes') check(s1,s2)
s1 = input() s2 = input() def check(s1,s2): if len(s1)+1 != len(s2): print('No') return for i in range(len(s1)): if s1[i] != s2[i]: print('No') # print(s1[i],s2[i]) return print('Yes') check(s1,s2)
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
405,496
405,497
u558717347
python
p02681
S = input() T = input() a = T.find(S) if a == 0: T = T.lstrip(S) if len(T) == 1: print("Yes") else: print("No") else: print("No")
S = input() T = input() a = T.find(S) if a == 0: T = T[len(S):] if len(T) == 1: print("Yes") else: print("No") else: print("No")
[]
405,504
405,505
u812891913
python
p02681
s = input() t = input() if len(s)+1 == len(t) and s == t[:-2]: print("Yes") else: print("No")
s = input() t = input() if len(s)+1 == len(t) and s == t[:-1]: print("Yes") else: print("No")
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
405,512
405,513
u289162337
python
p02681
s, t = input(), input() if t[:-1] == s: print("YES") else: print("NO")
s, t = input(), input() if t[:-1] == s: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,514
405,515
u227079508
python
p02681
s = input(); t = input(); u = t[:-1]; print(u); if u == s: print("Yes"); else: print("No");
s = input(); t = input(); u = t[:-1]; if u == s: print("Yes"); else: print("No");
[]
405,528
405,529
u158380546
python
p02681
S = input() T = input() if S[:len(S)] == T : print('Yes') else : print('No')
S = input() T = input() if T[:len(S)] == S : print('Yes') else : print('No')
[ "identifier.change", "control_flow.branch.if.condition.change" ]
405,530
405,531
u036914910
python
p02681
S = input() T = input() if S[:-1] == T : print('Yes') else : print('No')
S = input() T = input() if T[:len(S)] == S : print('Yes') else : print('No')
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.add" ]
405,532
405,531
u036914910
python
p02681
s=list(input()) t=list(input()) if s==t[:len(s)]: print("Yse") else: print("No")
s=list(input()) t=list(input()) if s==t[:len(s)]: print("Yes") else: print("No")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
405,549
405,550
u437351386
python
p02681
s=input() t=input() if t[-2]==s: print('Yes') else: print('No')
s=input() t=input() if t[:-1]==s: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change", "literal.number.integer.change", "variable_access.subscript.index.change" ]
405,571
405,572
u086624329
python
p02681
s=input() t=input() if t.rstrip(t[-1])==s: print('Yes') else: print('No')
s=input() t=input() if t[:-1]==s: print('Yes') else: print('No')
[ "call.remove", "control_flow.branch.if.condition.change" ]
405,573
405,572
u086624329
python
p02681
S = input() T = input() for i in range(len(S)): if S[i] != T[i]: print('No') elif S[i] == T[i] and i == len(S)-1: print('Yes') else: pass
S = input() T = input() for i in range(len(S)): if S[i] != T[i]: print('No') break elif S[i] == T[i] and i == len(S)-1: print('Yes') else: pass
[ "control_flow.break.add" ]
405,576
405,577
u841856382
python
p02681
S = input() T = input() for i in range(len(S)): if S[i] != T[i]: print('NO') elif S[i] == T[i] and i == len(S)-1: print('Yes') else: pass
S = input() T = input() for i in range(len(S)): if S[i] != T[i]: print('No') break elif S[i] == T[i] and i == len(S)-1: print('Yes') else: pass
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change", "control_flow.break.add" ]
405,578
405,577
u841856382
python
p02681
s=input() y=input() a=len(s) b=0 for i in range(a): if s[i] != y[i] : print("No") b=1 if b == 0: print("Yes")
s=input() y=input() a=len(s) b=0 for i in range(a): if s[i] != y[i] : print("No") b=1 break if b == 0: print("Yes")
[ "control_flow.break.add" ]
405,583
405,584
u713542442
python
p02681
s=list(input()) t=list(input()) t.pop() print(t) if s==t: print('Yes') else: print('No')
s=list(input()) t=list(input()) t.pop() if s==t: print('Yes') else: print('No')
[ "call.remove" ]
405,597
405,598
u974745064
python
p02681
s = input() t = input() if s == t[:1]: if len(t) == len(s)+1: print('Yes') else: print('No') else: print('No')
s = input() t = input() if s == t[:-1]: if len(t) == len(s)+1: print('Yes') else: print('No') else: print('No')
[ "expression.operation.unary.add", "control_flow.branch.if.condition.change" ]
405,599
405,600
u763383823
python
p02681
s = input() t = input() if s == t[:1]: if len(t) == len(s)+1: print('yes') else: print('No') else: print('No')
s = input() t = input() if s == t[:-1]: if len(t) == len(s)+1: print('Yes') else: print('No') else: print('No')
[ "expression.operation.unary.add", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,601
405,600
u763383823
python
p02681
s = input() t = input() u = t[0:len(t)-1] print(t) if s == u: print("Yes") else: print("No")
s = input() t = input() u = t[0:len(t)-1] if s == u: print("Yes") else: print("No")
[ "call.remove" ]
405,619
405,620
u949353021
python
p02681
s = input() t = input() s_len = len(s) if s[0:s_len-1] == t[0:s_len-1]: print("Yes") else: print("No")
s = input() t = input() s_len = len(s) if s[0:s_len] == t[0:s_len]: print("Yes") else: print("No")
[ "expression.operation.binary.remove" ]
405,623
405,624
u805552010
python
p02681
s1 = input() s2 = input()[1:] if s1 == s2: print("Yes") else: print("No")
s1 = input() s2 = input()[:-1] if s1 == s2: print("Yes") else: print("No")
[]
405,627
405,628
u885717263
python
p02681
S=input() T=input() if S[:-1]==T[:-2]: print("Yes") else: print("No")
S=input() T=input() if S==T[:-1]: print("Yes") else: print("No")
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
405,639
405,640
u833436666
python
p02681
S = input() T = input() if ((S in T) and (len(S)+1 == len(T))): print("Yes") else: print("No")
S = input() T = input() if ((S in T[:-1]) and (len(S)+1 == len(T))): print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change" ]
405,641
405,642
u136279532
python
p02681
a = input() b = input() if b.startswith(a) and len(a) == (len(b) -1): print("YES") else: print("NO")
a = input() b = input() if b.startswith(a) and len(a) == (len(b) -1): print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,667
405,668
u183945517
python
p02681
first = input() second = input() if(second.find(first) >= 0 and len(second) == len(first) + 1): print("Yes") else: print("No")
first = input() second = input() if(second.find(first) == 0 and len(second) == len(first) + 1): print("Yes") else: print("No")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
405,692
405,693
u210545407
python
p02681
N = input() M = input() Nlength = len(N) flag = True for x in range(Nlength): if N[x]==M[x]: continue else: flag=False if flag: print("YES") else: print("NO")
N = input() M = input() Nlength = len(N) flag = True for x in range(Nlength): if N[x]==M[x]: continue else: flag=False if flag: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,698
405,699
u595600198
python
p02681
s=input() t=input() t2=s[:len(s)] if s==t2: print("Yes") else: print("No")
s=input() t=input() t2=t[:len(t)-1] if s==t2: print("Yes") else: print("No")
[ "assignment.value.change", "identifier.change", "variable_access.subscript.index.change", "call.arguments.change" ]
405,700
405,701
u518064858
python
p02681
s = input() t = input() if t[0:len(s)] == s: print('yes') else: print('no')
s = input() t = input() if t[0:len(s)] == s: print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,702
405,703
u300457253
python
p02681
S = input().rstrip() T = input().rstrip() if S[:] == T[0:-1]: print("Yes") else: print("no")
S = input().rstrip() T = input().rstrip() if S[:] == T[0:-1]: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,704
405,705
u310855433
python
p02681
s = input() t =input() n=len(s) c=1 for i in range(n-1): if s[i] != t[i]: c =0 if c: print('Yes') else: print('No')
s = input() t =input() n=len(s) c=1 for i in range(n): if s[i] != t[i]: c =0 if c: print('Yes') else: print('No')
[ "expression.operation.binary.remove" ]
405,719
405,720
u036492525
python
p02681
import math sys.setrecursionlimit(10**9) def main(): S = input() T = input() if S == T[:-1] and len(T) == 1 + len(S): print("Yes") exit() print("No") if __name__ == "__main__": main()
import sys import math sys.setrecursionlimit(10**9) def main(): S = input() T = input() if S == T[:-1] and len(T) == 1 + len(S): print("Yes") exit() print("No") if __name__ == "__main__": main()
[]
405,723
405,724
u997648604
python
p02681
s = input() t = input() if s[0:-1] == t[0:-2]: print('Yes') else: print('No')
s = input() t = input() if s[0:] == t[0:-1]: print('Yes') else: print('No')
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
405,725
405,726
u588526762
python
p02681
s = input() t = input() k = abcdefghijklmnopqrstuvwxwz if s == t[:-1]: if t[-1] in k: print("Yes") else: print("No") else: print("No")
s = input() t = input() k = "abcdefghijklmnopqrstuvwxwz" if s == t[:-1]: if t[-1] in k: print("Yes") else: print("No") else: print("No")
[]
405,731
405,732
u793666115
python
p02681
s = input(); t = input(); if t[:len(t)] == s: print("Yes"); else: print("No")
s = input(); t = input(); if t[:len(t) - 1] == s: print("Yes"); else: print("No")
[ "control_flow.branch.if.condition.change" ]
405,758
405,759
u508061226
python
p02681
S = str(input()) T = str(input()) if T[:-1] == S: print("Yes") else: print("no")
S = str(input()) T = str(input()) if T[:-1] == S: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,762
405,763
u517682687
python
p02681
s=input() r=input() c=0 for i in range(len(s)): if(s[i]==r[i]): c=c+1 if(c==len(s) and len(r)==len(s)+1): print("YES") else: print("NO")
s=input() r=input() c=0 for i in range(len(s)): if(s[i]==r[i]): c=c+1 if(c==len(s) and len(r)==len(s)+1): print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,780
405,781
u318936505
python
p02681
s = input() t = input() if t == s[:-1] : print("Yes") else: print("No")
s = input() t = input() if s ==t[:-1]: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change" ]
405,784
405,785
u020604402
python
p02681
def main(): S = input() T = input() if len(S)==len(T)-1 and S==(T[:-1]): ans = "YES" else: ans = "No" print(ans) if __name__ == '__main__': main()
def main(): S = input() T = input() if len(S)==len(T)-1 and S==(T[:-1]): ans = "Yes" else: ans = "No" print(ans) if __name__ == '__main__': main()
[ "literal.string.change", "literal.string.case.change", "assignment.value.change" ]
405,790
405,791
u983853152
python
p02681
s=input() t=input() t=t[:-1] print(s) if s==t: print("Yes") else: print("No")
s=input() t=input() t=t[:-1] if s==t: print("Yes") else: print("No")
[ "call.remove" ]
405,792
405,793
u196746947
python
p02681
#文字列の入力 S = input() #文字列の入力 T = input() S_list = list(S) T_list = list(T) count = 0 for i in range(len(S_list)): S_list[i] == T_list[i] count = count + 1 if(count == len(S_list)): print("Yes") else: print("No")
#文字列の入力 S = input() #文字列の入力 T = input() S_list = list(S) T_list = list(T) count = 0 for i in range(len(S_list)): if(S_list[i] == T_list[i]): count = count + 1 if(count == len(S_list)): print("Yes") else: print("No")
[ "control_flow.branch.if.add" ]
405,796
405,797
u964521959
python
p02681
from copy import copy, deepcopy from collections import Counter from math import sqrt, floor, factorial from itertools import permutations, combinations, combinations_with_replacement from operator import mul from functools import reduce import bisect MOD = 10**9 + 7 INF = float('inf') S = input() T = input() print(S...
from copy import copy, deepcopy from collections import Counter from math import sqrt, floor, factorial from itertools import permutations, combinations, combinations_with_replacement from operator import mul from functools import reduce import bisect MOD = 10**9 + 7 INF = float('inf') S = input() T = input() if T[:-...
[ "call.remove" ]
405,800
405,801
u935016954
python
p02681
S = input() T = input() if T[:len(S)] == S and len(T) == len(S) +1: print("Yes") else: print("NO")
S = input() T = input() if T[:len(S)] == S and len(T) == len(S) +1: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,810
405,811
u674574659
python
p02681
s = input() t = input() print("Yes" if s == t[:-1] else "no")
s = input() t = input() print("Yes" if s == t[:-1] else "No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,814
405,815
u550835660
python
p02681
s=input() t=input() if(s==t[:len(s)]): print("YES") else: print("NO")
s=input() t=input() if(s==t[:len(s)]): print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,828
405,829
u143738910
python
p02681
A = list(input()) B = list(input()) c = len(B) del B[c-1] if A == B: print("Yes") else: print("NO")
A = list(input()) B = list(input()) c = len(B) del B[c-1] if A == B: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,841
405,842
u991134049
python
p02681
S = input() T = input() if len(S) == len(T)+1 and S == T[:len(S)-1]: print("Yes") else: print("No")
S = input() T = input() if len(S)+1 == len(T) and S == T[:len(S)]: print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
405,843
405,844
u750058957
python
p02681
x=input() y=input() if x[:-1]==y[:-2]: print("Yes") else: print("No")
x=input() y=input() if x==y[:-1]: print("Yes") else: print("No")
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
405,854
405,855
u068460698
python
p02681
S = input() T = input() S_minus_1 = S[:len(S)] if(S_minus_1 == S): print("Yes") else: print("No")
S = input() T = input() T_minus_1 = T[:len(S)] if(T_minus_1 == S): print("Yes") else: print("No")
[ "assignment.variable.change", "identifier.change", "assignment.value.change", "control_flow.branch.if.condition.change" ]
405,857
405,858
u591734860
python
p02681
s=input() t=input() if t.find(s)==0:print("YES") else:print("NO")
s=input() t=input() if t.find(s)==0:print("Yes") else:print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,862
405,863
u361710495
python
p02681
s = input() t = input() if t.rstrip() == s: print('Yes') else: print('No')
s = input() t = input() if t[:-1] == s: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
405,864
405,865
u548093253
python
p02681
from sys import stdin s = stdin.readline().rstrip() t = stdin.readline().rstrip() if(s == t[:-1]): print('Yes') else: pring('No')
from sys import stdin s = stdin.readline().rstrip() t = stdin.readline().rstrip() if(s == t[:-1]): print('Yes') else: print('No')
[ "identifier.change", "call.function.change" ]
405,866
405,867
u911531682
python
p02681
s = input() t = input() if len(t) == len(s) + 1: print("YES" if s == t[:-1] else "NO") else: print("NO")
s = input() t = input() if len(t) == len(s) + 1: print("Yes" if s == t[:-1] else "No") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,874
405,875
u419272088
python
p02681
s = input() t = input() t_last = t[:-1] if s == t_last: print(t) if s != t: print('Yes') else: print('No') else: print('No')
s = input() t = input() t_last = t[:-1] if s == t_last: if s != t: print('Yes') else: print('No') else: print('No')
[ "call.remove" ]
405,876
405,877
u791070772
python
p02681
import sys S = input() T = input() if(S==T[:-1] and len(T) == len(S)+1): print("yes") else: print("no")
import sys S = input() T = input() if(S==T[:-1] and len(T) == len(S)+1): print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,897
405,898
u597553490
python
p02681
X = input() Y = input() if (len(X) + 1 == len(Y)) and X == Y[:-1]: print("yes") else: print("No")
X = input() Y = input() if (len(X) + 1 == len(Y)) and (X == Y[:-1]): print("Yes") else: print("No")
[ "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,903
405,904
u550633907
python
p02681
def ABC_167_A(): S = input() T = input() if T.count(S) == 1 and len(T) == len(S) +1 and T.index(S) == 0: print('Yes') else: print('No') if __name__ == '__main__': ABC_167_A()
def ABC_167_A(): S = input() T = input() if T.count(S) >= 1 and len(T) == len(S) +1 and T.index(S) == 0: print('Yes') else: print('No') if __name__ == '__main__': ABC_167_A()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
405,907
405,908
u604655161
python
p02681
a = input() b = input() if a == b[:-1] and len(a) + 1 == len(b) : print('Yes') else: print('NO')
a = input() b = input() if a == b[:-1] and len(a) + 1 == len(b) : print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,919
405,920
u004482945
python
p02681
#!/usr/bin/env python3 S = list(input()) T = list(input()) if len(T) == len(S) + 1: flag = True for i in len(S): if S[i] != T[i]: flag = False if flag: print('Yes') else: print('No') else: print('No')
#!/usr/bin/env python3 S = list(input()) T = list(input()) if len(T) == len(S) + 1: flag = True for i in range(len(S)): if S[i] != T[i]: flag = False if flag: print('Yes') else: print('No') else: print('No')
[ "call.add", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
405,923
405,924
u705857261
python
p02681
s=input() t=input() if len(t)-len(s)==1 and s==t[:len(s)]: print("YES") else: print("No")
s=input() t=input() if len(t)-len(s)==1 and s==t[:len(s)]: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,927
405,928
u341267151
python
p02681
T=input() if S==T[:len(T)-1]: print('Yes') else: print('No')
S=input() T=input() if S==T[:len(T)-1]: print('Yes') else: print('No')
[ "assignment.add" ]
405,933
405,934
u933717615
python
p02681
S = input() T = input() if S == T[:-1]: return 'Yes' else: return 'No'
S = input() T = input() if S == T[:-1]: print('Yes') else: print('No')
[ "function.return_value.change", "call.arguments.change" ]
405,942
405,943
u750958070
python
p02681
s = input() n = input() print('YES' if s == n[:-1] else 'NO')
s = input() n = input() print('Yes' if s == n[:-1] else 'No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,952
405,953
u031097017
python
p02681
s,t = input().split() if t[:len(t)-1] == s: print('Yes') else: print('No')
s = input() t = input() if t[:len(t)-1] == s: print('Yes') else: print('No')
[ "call.add", "call.remove" ]
405,960
405,961
u769569814
python
p02681
sys.stdin=f S=input() T=input() for i in range(len(S)): if S[i]==T[i]: continue else: print("No") sys.exit() print("Yes")
import sys S=input() T=input() for i in range(len(S)): if S[i]==T[i]: continue else: print("No") sys.exit() print("Yes")
[ "assignment.remove" ]
405,964
405,965
u636665812
python
p02681
s=input() y=input() if (s==y[:-1]): print('Yes') else: print('No)')
s=input() y=input() if (s==y[:-1]): print('Yes') else: print('No')
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
405,974
405,975
u533350485
python
p02681
s = input() t = input() if t.startswith(s): print('YES') else: print('NO')
s = input() t = input() if t.startswith(s): print('Yes') else: print('No')
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,976
405,977
u229848759
python
p02681
a = input() b = input() if a == b[:-1]: print("YES") else: print("NO")
a = input() b = input() if a == b[:-1]: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
405,984
405,985
u826416832
python
p02681
import sys S = sys.stdin.readline().rstrip() T = sys.stdin.readline().rstrip() if S[:-1] == T: print('Yes') else: print("No")
import sys S = sys.stdin.readline().rstrip() T = sys.stdin.readline().rstrip() if S == T[:-1]: print('Yes') else: print("No")
[ "control_flow.branch.if.condition.change" ]
405,998
405,999
u821441703
python
p02681
s = input() t = input() if len(t) == len(s) + 1 and t[0:len(t)] == s: print('Yes') else: print('No')
s = input() t = input() if len(t) == len(s) + 1 and t[0:len(t)-1] == s: print('Yes') else: print('No')
[ "control_flow.branch.if.condition.change" ]
406,008
406,009
u135961419
python
p02681
s=input() t=input() l=len(t) print('Yes' if s in t[:l] else 'No')
s=input() t=input() l=len(t)-1 print('Yes' if s in t[:l] else 'No')
[ "assignment.change" ]
406,016
406,017
u692498898
python
p02681
s=input() t=input() if s==s[:len(s)]: print('Yes') else: print('No')
s=input() t=input() if s==t[:len(t)-1]: print('Yes') else: print('No')
[ "identifier.change", "control_flow.branch.if.condition.change", "variable_access.subscript.index.change" ]
406,018
406,019
u519939795
python
p02681
s = input() t = input() if s[:-1] == t: if len(t) == len(s) + 1: print("Yes") else: print("No") else: print("No")
s = input() t = input() if t[:-1] == s: if len(t) == len(s) + 1: print("Yes") else: print("No") else: print("No")
[ "identifier.change", "control_flow.branch.if.condition.change" ]
406,038
406,039
u520843951
python
p02681
a = input() b = input() for i in range(len(b)): if a[i] != b[i]: print("No") break if i == len(b) - 1: print("Yes")
a = input() b = input() for i in range(len(a)): if a[i] != b[i]: print("No") break if i == len(a) - 1: print("Yes")
[ "identifier.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "control_flow.branch.if.condition.change" ]
406,042
406,043
u633450100
python
p02681
S=input() T=input() U=T[:len(T)-1] print(U) print("Yes" if(len(S)+1 == len(T) and S==U) else "No")
S=input() T=input() U=T[:len(T)-1] print("Yes" if(len(S)+1 == len(T) and S==U) else "No")
[ "call.remove" ]
406,044
406,045
u216459554
python
p02681
S = list(input()) T = list(input()) ans = ''.join(S) + T[-1] print(ans) if ans == ''.join(T): print("Yes") else: print("No")
S = list(input()) T = list(input()) ans = ''.join(S) + T[-1] if ans == ''.join(T): print("Yes") else: print("No")
[ "call.remove" ]
406,048
406,049
u599925824
python
p02681
s=input() t=input() if s==t[:-1]: print("YES") else: print("NO")
s=input() t=input() if s==t[:-1]: print("Yes") else: print("No")
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
406,060
406,061
u190009657
python
p02682
a,b,c,k=map(int,input().split()) ans=a if k-a<=0: print(ans) exit() if k-a-b<=0: print(ans) exit() if k-a-b-c<0: ans=ans+(k-a-b)*(-1) print(ans) else: ans=ans-c print(ans)
a,b,c,k=map(int,input().split()) ans=a if k-a<=0: print(k) exit() if k-a-b<=0: print(ans) exit() if k-a-b-c<0: ans=ans+(k-a-b)*(-1) print(ans) else: ans=ans-c print(ans)
[ "identifier.change", "call.arguments.change", "io.output.change" ]
406,086
406,087
u669742612
python
p02682
a,b,c,k=map(int,input().split()) ans=a if k-a==0: print(ans) exit() if k-a-b<=0: print(ans) exit() if k-a-b-c<0: ans=ans+(k-a-b)*(-1) print(ans) else: ans=ans-c print(ans)
a,b,c,k=map(int,input().split()) ans=a if k-a<=0: print(k) exit() if k-a-b<=0: print(ans) exit() if k-a-b-c<0: ans=ans+(k-a-b)*(-1) print(ans) else: ans=ans-c print(ans)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.change", "call.arguments.change", "io.output.change" ]
406,088
406,087
u669742612
python
p02682
A,B,C,K=map(int,input().split()) print(1*min(A,K)-(1*(K-A-B)))
A,B,C,K=map(int,input().split()) print(1*min(A,K)-1*max(0,K-A-B))
[ "call.arguments.change", "call.add", "call.arguments.add" ]
406,101
406,102
u218834617
python
p02682
A,B,C,K=map(int,input().split()) if K<=A+B: print(A) else: print(A-(K-A-B))
A,B,C,K=map(int,input().split()) if K<=A+B: print(min(A,K)) else: print(A-(K-A-B))
[ "call.add", "call.arguments.add" ]
406,109
406,110
u263824932
python
p02682
a,b,c,k=map(int,open(0).read().split()) if k<=a+b: print(a) else: cntc=k-a-b print(a-cntc)
a,b,c,k=map(int,open(0).read().split()) if k<=a+b: print(min(a,k)) else: cntc=k-a-b print(a-cntc)
[ "call.add", "call.arguments.add" ]
406,123
406,124
u860829879
python
p02682
A, B, C, K = map(int, input().split()) if (K - A) <= 0: print(A) else: if (K - A - B) <= 0: print(A) else: c = (K - A - B) print(A - c)
A, B, C, K = map(int, input().split()) if (K - A) <= 0: print(K) else: if (K - A - B) <= 0: print(A) else: c = (K - A - B) print(A - c)
[ "identifier.change", "call.arguments.change", "io.output.change" ]
406,127
406,128
u987637902
python
p02682
a, b, c, k = map(int, input().split()) import sys ans = 0 if a != 0 and a >= k: # a = 1 print(a) sys.exit() elif a != 0: ans += a k -= a if b != 0 and b >= k: print(ans) sys.exit() elif b != 0: k -= b ans += k * -1 print(ans)
a, b, c, k = map(int, input().split()) import sys ans = 0 if a != 0 and a >= k: # a = 1 print(k) sys.exit() elif a != 0: ans += a k -= a if b != 0 and b >= k: print(ans) sys.exit() elif b != 0: k -= b ans += k * -1 print(ans)
[ "identifier.change", "call.arguments.change", "io.output.change" ]
406,138
406,139
u566371932
python
p02682
A, B, C, K = list(map(lambda x : int(x), input().split(" "))) if A >= K: print(K) elif A + B >= K: print(A) else: print(2 * A - B - K)
A, B, C, K = list(map(lambda x : int(x), input().split(" "))) if A >= K: print(K) elif A + B >= K: print(A) else: print(2 * A + B - K)
[ "misc.opposites", "expression.operator.arithmetic.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
406,140
406,141
u739843002
python