ZhenlongDai/ACPR huggingface dataset:
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input(">>")
T = input(">>")
 
a = 0
flag1 = False
flag2 = False

if (len(T) - len(S) == 1):
    flag1 = True

if (S == T[:-1]):
    flag2 = True

if (flag1 and flag2):
    print("Yes")
else:
    print("No")


Failing test case input:
d
cd

Expected output:
No


Actual output:
>>>>No


Fixed submission (verdict: Accepted):
S = input("")
T = input("")
 
flag1 = False
flag2 = False

if (len(T) - len(S) == 1):
    flag1 = True

if (S == T[0:-1]):
    flag2 = True

if (flag1 and flag2):
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):

s = input()
t = input()

if s in t:
    print("Yes")
else:
    print("No")




Failing test case input:
a
ba

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):

s = input()
t = input()

if s == t[:-1]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
if S in T:
    print("Yes")
else:
    print("No")

Failing test case input:
b
ab

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
T = input()
if T[:-1] == S:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if S in T:
    print('Yes')
else:
    print('No')


Failing test case input:
a
fa

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S in T[:-1]:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
if S in T and len(S) == len(T)-1:
    print("Yes")
else:
    print("No")    

Failing test case input:
a
fa

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
T = input()
if S == T[:-1] and len(S) == len(T)-1:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

import sys

YES = "Yes"  
NO = "No"  


def solve(S: str, T: str):
    print(YES if len(S) == len(T) - 1 else NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  
    T = next(tokens)  
    solve(S, T)

if __name__ == '__main__':
    main()


Failing test case input:
snuke
snelee

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):

import sys

YES = "Yes"  
NO = "No"  


def solve(S: str, T: str):
    print(YES if S == T[0:len(T)-1] else NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  
    T = next(tokens)  
    solve(S, T)

if __name__ == '__main__':
    main()
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
m = input()
if 1 <= len(n):
    if len(n)<= 10 :
        a = m[-1]
        n = n + a
        if n == m:
            print("YES")
        else :
            print("NO")

Failing test case input:
e
ab

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = input()
m = input()
if 1 <= len(n):
    if len(n)<= 10 :
        a = m[-1]
        n = n + a
        if n == m:
            print("Yes")
        else :
            print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
t=input()
a="Yes"
for i in range(len(s)-1):
    if s[i]!=t[i]:
        a="No"
if len(s)+1!=len(t):
    a="No"
if len(s)>10 or len(s)<1:
  a="No"
print(a)


Failing test case input:
b
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()
t=input()
a="Yes"
for i in range(len(s)):
    if s[i]!=t[i]:
        a="No"
if len(s)+1!=len(t):
    a="No"
if len(s)>10 or len(s)<1:
    a="No"
print(a)

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
if S == T[:len(S)-1]:
  print("Yes")
else:
  print("No")

Failing test case input:
b
ba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
T = input()
if S == T[:len(S)]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)
if T[:-1] == S:
    print("Yes")
else:
    print("No")


Failing test case input:
`
ca

Expected output:
No


Actual output:
`
No


Fixed submission (verdict: Accepted):
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[:-1] == S:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=list(input())
T=list(input())
T.pop(len(T)-1)
print(S,T)
if S == T:
	print("Yes")
else:
	print("No")

Failing test case input:
vmrej
snfflg

Expected output:
No


Actual output:
['v', 'm', 'r', 'e', 'j'] ['s', 'n', 'f', 'f', 'l']
No


Fixed submission (verdict: Accepted):
S=list(input())
T=list(input())
T.pop(len(T)-1)
if S == T:
	print("Yes")
else:
	print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if len(T) == len(S)+1:
    print("Yes")
else:
    print("No")

Failing test case input:
d
bc

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[:-1]:
    print("Yes")
else:
    print("No")
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
in1 = input()
in2 = input()
res = True

if len(in1) < 1 or len(in1) > 10 :
    res = False

if in1.islower() and in1.isalpha() :
    pass
else :
    res = False


if in2.islower() and in2.isalpha():
    if in1 in in2 :
        if len(in2) - len(in1) == 1 :
            pass
        else :
            res = False
    else :
        res = False
else :
    res = False

if res :
    print('Yes')
else :
    print('No')

Failing test case input:
d
cd

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
in1 = input()
in2 = input()
res = True

if len(in1) < 1 or len(in1) > 10 :
    res = False

if in1.islower() and in1.isalpha() :
    pass
else :
    res = False


if in2.islower() and in2.isalpha():
    if in1 in in2[:len(in2)-1] :
        if len(in2) - len(in1) == 1 :
            pass
        else :
            res = False
    else :
        res = False
else :
    res = False

if res :
    print('Yes')
else :
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
T=input()


if len(S)+1==len(T):
    for i in range(len(S)): 
        if S[i]==T[i]:
            a='ok'
            continue
        else:
            a='no'
            break
else:
    print('no')

if a=='ok':
    print('yes')
else:
    print('no')

Failing test case input:
rjvdm
snfflg

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
S=input()
T=input()


if len(S)+1==len(T):
    for i in range(len(S)): 
        if S[i]==T[i]:
            a='ok'
            continue
        else:
            a='no'
            break
else:
    print('no')

if a=='ok':
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()

t = t.replace(s, '')

if len(t) == 1:
  print('Yes')
else :
  print('No')

Failing test case input:
d
cd

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
t = input()

if s == t[:-1]:
  print('Yes')
else :
  print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

print(T[:-1])
if S == T[:-1]:
    print("Yes")
else:
    print("No")

Failing test case input:
bhoktdai
khpbud`iz

Expected output:
No


Actual output:
khpbud`i
No


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[:-1]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()
b=input()
a+="z"
if a==b:
    print("Yes")
else:
    print("No")


Failing test case input:
b
be

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=input()
b=input()
if a==b[:len(a)]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
if S in T:
	print('Yes')
else:
  	print('No')

Failing test case input:
a
ba

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
t = input()
if s == t[:-1]:
  print('Yes')
else:
  print('No')
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()
b=input()
if a in b:
    print('Yes')
else:
    print('No')

Failing test case input:
a
ba

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
a=input()
b=input()
if b.startswith(a):
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if S == T[0:-1]:
    print("Yes")

Failing test case input:
botfkadi
ihpbtdbiz

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[0:-1]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
print(T[:-2:])
if S == T[:-1:] and len(T) == len(S)+1:
    print("Yes")
else:
    print("No") 

Failing test case input:
snuke
snelee

Expected output:
No


Actual output:
snel
No


Fixed submission (verdict: Accepted):
S = input()
T = input()
if S == T[:-1:]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = str(input())
t = str(input())

if s.islower() and s.isalpha() and t.islower() and t.isalpha():
    if 1 <= len(s) <= 10 and len(t)==len(s) + 1 and s in t :
        print("Yes")
    else:
        print("No")
else:
    print("No")
    

Failing test case input:
d
cd

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = str(input())
t = str(input())

if s.islower() and s.isalpha() and t.islower() and t.isalpha() and 1<=len(s)<=10:
    a = t[:-1]
    
    if s==a:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
flag = False
for i in "abcdefghijklmnopqrstuvwxyz":
  if T==S+i:
    print("YES")
    flag = True
    break
if flag == False:
  print("NO")

Failing test case input:
hdakftob
zibdthpbi

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
T = input()
flag = False
for i in "abcdefghijklmnopqrstuvwxyz":
  if T==S+i:
    print("Yes")
    flag = True
    break
if flag == False:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()
ans = 'Yes'
for i in range(len(s) - 1):
    if s[i] != t[i]:
        ans = 'No'
print(ans)


Failing test case input:
b
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
t = input()
ans = 'Yes'
for i in range(len(s)):
    if s[i] != t[i]:
        ans = 'No'
print(ans)

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s=input().split()
t=input().split()
if(s==t[:-1]):
  print('Yes')
  exit(0)
print('No')

Failing test case input:
a
ab

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s=input().rstrip('\n')
t=input().rstrip('\n')
if(s==t[:-1]):
  print('Yes')
  exit(0)
print('No')
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s =input()
t =input()

if s in t and  0<=len(s)<=10 and len(t)==len(s)+1 :
    
    print('Yes')
else:
    print('No')

Failing test case input:
a
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s =input()
t =input()

if t[0:len(s)]==s and  0<=len(s)<=10 and len(t)==len(s)+1 and s in t:
    
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


S=list(input())
T=list(input())
F=0
for i in range(len(S)):
    if  S[i]==T[i]:

        if len(T)==len(S)+1:
            F=1

if F==1:
    print("Yes")

if F==0:
    print("No")

Failing test case input:
botfkadi
ihpbtdbiz

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):


S=list(input())
T=list(input())
F=1
for i in range(len(S)):
    if  not S[i]==T[i]:
        F=0

if not len(T)==len(S)+1:
    F=0

if F==1:
    print("Yes")

if F==0:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input().split()
T = input().split()
s = len(S)
a = 0
for i in range(0,s-1):
    if S[i] != T[i]:
        a = 1
if a == 0:
    print('Yes')
else:
    print('No')

Failing test case input:
vmrdj
snfflg

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = list(input())
T = list(input())
a = 0
s = len(S)
for i in range(0,s):
    if S[i] != T[i]:
        a = 1
if a == 0:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()
b=input()
if(a in b):
  print('Yes')
else:
  print('No')

Failing test case input:
b
ab

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
a=input()
b=input()
if(a == b[:-1]):
  print('Yes')
else:
  print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = input(), input()
if a==b[:-1] and len(a)+1==len(b):
    print("Yes")
else:
    print("NO")


Failing test case input:
e
cb

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a, b = input(), input()
if a==b[:-1]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()


print("YES" if s+t[-1] == t else "NO")


Failing test case input:
vjrdm
snfflg

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
t = input()
print("Yes" if t[:-1] == s else "No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = str(input())
T = str(input())

print(T)

if S == T:
    print("Yes")
else:
    print("No")

Failing test case input:
a
ea

Expected output:
No


Actual output:
ea
No


Fixed submission (verdict: Accepted):
S = str(input())
T = str(input())

T = T[:-1]

if S == T:
    print("Yes")
else:
    print("No")
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if len(S) < len(T):
  print("Yes")
else:
  print("No")

Failing test case input:
vrndj
tnfflf

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[:-1] and len(S) + 1 == len(T):
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
if len(S) == len(T)+1 and S == T[:len(S)-1]:
  print("Yes")
else:
  print("No")

Failing test case input:
a
ad

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
T = input()
if len(S)+1 == len(T) and S == T[:len(S)]:
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

s = len(S)
t = len(T)

if (S == T[:s]) & (t == s+1):
    print("yes")
else:
    print("no")

Failing test case input:
vdmjr
snfflf

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
S = input()
T = input()

s = len(S)
t = len(T)

if (S == T[:s]) & (t == s+1):
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if len(T.replace(S, '')) == 1:
    print('Yes')
else:
    print('No')

Failing test case input:
a
ba

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
T = input()
if S[:] == T[:-1]:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import re
s = input()
t = input()

if len(re.sub(s, '', t)) == 1:
    print('Yes')
else:
    print('No')

Failing test case input:
a
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import re
s = input()
t = input()

if s == t[:-1]:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s= str(input())
t = str(input())
s = list(s)
t = list(t)
a=0
for i in range(len(s)-1):
            if s[i]==t[i]:
               a = a+1
if a == len(s)-1:
    print("Yes")
else:
    print("No")

Failing test case input:
d
bc

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s= str(input())
t = str(input())
s = list(s)
t = list(t)
a=0
for i in range(len(s)):
    if s[i]==t[i]:
        a = a+1
if a == len(s):
    if len(t)-len(s)==1:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
t=input()
if s[:-1]==t:
  print('Yes')
else:
  print('No')

Failing test case input:
chokudai
chokudaiz

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s=input()
t=input()
if s==t[:-1]:
  print('Yes')
else:
  print('No')
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
T=input()

newT=T[len(T)-1]

S=S+newT

if S==T:
    print('yes')
else:
    print('no')
    

Failing test case input:
ukndr
snelef

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
S=input()
T=input()

newT=T[len(T)-1]

S=S+newT

if S==T:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if len(S) < 1:
    print("NO")
elif len(S) > 10:
    print("NO")
elif T[:-1] != S:
    print("NO")
elif set(T) - set("abcdefghijklmnopqrstuvwxyz"):
    print("NO")
else:
    print("Yes")

Failing test case input:
vrndk
snelef

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
T = input()

if ((len(S) < 1)
    or (len(S) > 10)
    or (T[:-1] != S)
    or (set(T) - set("abcdefghijklmnopqrstuvwxyz"))):
    print("No")
else:
    print("Yes")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
T=input()
num=0
for i in range(len(S)):
    if S[i]==T[i]:
        num+=1
    else:
        print("No")
if num==len(S):
    print("Yes")
else:
    print("No")


Failing test case input:
bgokdtai
jhpbtd`iz

Expected output:
No


Actual output:
No
No
No
No
No
No
No
No


Fixed submission (verdict: Accepted):
S=input()
T=input()
num=0
for i in range(len(S)):
    if S[i]==T[i]:
        num+=1
    else:
        print("No")
        exit()
if num==len(S):
    print("Yes")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
s = list(str(input()))
t = list(str(input()))

for i in range(len(s)):
    if s[i] == t[i] and len(t) == len(s)+1:
        print('Yes')
        sys.exit()
print('No')

Failing test case input:
bhoktdai
khpbud`iz

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import sys
s = list(str(input()))
t = list(str(input()))
a = 0

for i in range(len(s)):
    if s[i] == t[i] :
        a += 1

if a == len(s) and len(s)==len(t)-1:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s, t = input(), input()
if t[:-1] == s:
	print("YES")
else:
	print("NO")

Failing test case input:
fotdkabi
ihpbtdbhz

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s, t = input(), input()
if t[:-1] == s:
	print("Yes")
else:
	print("No")

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def main():
  S=input()
  T=input()
  if(S[0:-1]==T[0:len(T)-1]):
    print('Yes')
  else:
    print('No')

if __name__ == '__main__':
    main()

Failing test case input:
a
ad

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
def main():
  S=input()
  T=input()
  if(S[0:]==T[0:len(T)-1]):
    print('Yes')
  else:
    print('No')

if __name__ == '__main__':
    main()
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()
if s in t and s[-1] != t[-1]:
  print("Yes")
else:
  print("No")

Failing test case input:
a
aa

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
t = input()
if s + t[-1] == t:
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if S == T[:len(T)-1] and len(S) == len(T) - 1 and str.islower(S) == True and str.islower(T) == True:
    print("Yse")
else:
    print("No")


Failing test case input:
b
ba

Expected output:
Yes


Actual output:
Yse


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[:len(T)-1] and len(S) == len(T) - 1 and str.islower(T) == True:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

S = str(input())
T = str(input())

if S in T:
    print('Yes')
else:
    print('No')

Failing test case input:
d
cd

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):

S = str(input())
T = str(input())

if S == T[:-1]:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()
print(t[:len(s)])
if s == t[:len(s)] and len(s)+1 == len(t):
    print('Yes')
else:
    print('No')

Failing test case input:
dgakftob
ibphtdicz

Expected output:
No


Actual output:
ibphtdic
No


Fixed submission (verdict: Accepted):
s = input()
t = input()

if s == t[:len(s)] and len(s)+1 == len(t):
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S=input()
T=input()
ls = []
flg = False
for i in range(26):
    
    
    if T == S+chr(ord("a")+i):
        flg = True
        print("Yes")
        break
    else:
        continue
if flg == True:
    print("Yes")
else:
    print("No")


Failing test case input:
a
ab

Expected output:
Yes


Actual output:
Yes
Yes


Fixed submission (verdict: Accepted):
S=input()
T=input()
ls = []
flg = False
for i in range(26):
    
    
    if T == S+chr(ord("a")+i):
        flg = True
        
        break
    else:
        continue
if flg == True:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if len(S) + 1 ==len(T) and S == T[:-1]:
    print("Yes")
else:
    print("NO")

Failing test case input:
c
bd

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
import sys

S = input()
T = input()

if S == T[:-1]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()

if t[0:len(s)]==s:
    print("YES")
else:
    print("NO")


Failing test case input:
rdnku
snelee

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
t = input()

if t[0:len(s)]==s:
    print("Yes")
else:
    print("No")
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
T=input()
if S==T:
    print('No')
else:
        if T.find(S)==-1:
            print('No')
        else:
            print('Yes')

Failing test case input:
a
da

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S=input()
T=input()
if S==T:
    print('No')
else:
    if T.startswith(S)==0:
        print('No')
    else:
        if T.find(S)==-1:
            print('No')
        else:
            print('Yes')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()
u = t.rstrip(t[-1])
out = ('No', 'Yes')[s == u]
print(out)

Failing test case input:
a
aa

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
t = input()
u = t[:-1]
out = ('No', 'Yes')[s == u]
print(out)

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
t=input()

if s in t:
  print("Yes")
else:
  print("No")

Failing test case input:
d
cd

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import re
s=input()
t=input()


if re.search(s+'\w', t):
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s,t = input(), input()
length = len(t) - 1
t = t[0:length]
if s == t:
    print('Yes', s, t)
else:
    print('No', s, t)

Failing test case input:
iotdkabf
ihpbtdahz

Expected output:
No


Actual output:
No iotdkabf ihpbtdah


Fixed submission (verdict: Accepted):
s,t = input(), input()
length = len(t) - 1
t = t[0:length]
if s == t:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()

if s == t[:-1]:
  print ('yes')
else:
  print ('no')

Failing test case input:
choktdai
chokudaiz

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
s = input()
t = input()

if s == t[:-1] and len(s) + 1 == len(t):
  print ('Yes')
else:
  print ('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import re
s=str(input())
t=str(input())
t2=s.replace(t[0:],"",1)
if len(t2)==1 and re.sub(r"[a-z]","",t2)=="":
  print("Yes")
else:
  print("No")

Failing test case input:
a
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import re
s=str(input())
t=str(input())
for i in range(len(s)):
 if s[i]!=t[i]:
  print("No")
  exit()
 else:
  pass
if re.sub(r"[a-z]","",t)=="":
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print(('No','Yes')[input()in input()::2])

Failing test case input:
bgokdtai
jhpbtd`hz

Expected output:
No


Actual output:
('No',)


Fixed submission (verdict: Accepted):
s=input();print(('No','Yes')[s==input()[:len(s)]])
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
moji = [input() for i in range(2)]
if len(moji[0]) >= 1 and len(moji[0]) <= 10 and len(moji[0])+1 == len(moji[1]):
  print("Yes")
else:
  print("No")

Failing test case input:
nsuke
snelee

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
moji = [input() for i in range(2)]
if len(moji[0]) >= 1 and len(moji[0]) <= 10 and len(moji[0])+1 == len(moji[1]) and moji[0] == moji[1][:len(moji[0])]:
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input().split()
T = input().split()
s = len(S)
a = 0
for i in range(0,s):
    if S[i] != T[i]:
        a = 1
if a == 0:
    print('Yes')
else:
    print('No')

Failing test case input:
a
ac

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = list(input())
T = list(input())
a = 0
s = len(S)
for i in range(0,s):
    if S[i] != T[i]:
        a = 1
if a == 0:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
b = input()
if a == b[:-1]:
  print('yes')
else:
  print('No')

Failing test case input:
chokudai
chokudaiz

Expected output:
Yes

Actual output:
yes


Fixed submission (verdict: Accepted):
a = input()
b = input()
if a == b[:-1]:
  print('Yes')
else:
  print('No')

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S = str(input())
T = str(input())

if T[:-1] == S:
    print("Yes")
else:
    print("no")



Failing test case input:
bhoktdai
khobud`iz

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
S = str(input())
T = str(input())

if T[:-1] == S:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()

if s in t and s < t and len(s) <= 10:
    print("Yes")
else:
    print("No")

Failing test case input:
a
ba

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
t = input()

if(s == t[:-1]):
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if len(S) + 1 == len(T):
    print('Yes')
else:
    print('No')

Failing test case input:
b
fa

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[0:len(S)] and len(S) + 1 == len(T):
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if S in T:
    print("Yes")
else:
    print("No")

Failing test case input:
a
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import re
S = input()
T = input()

if re.match(S, T):
    print("Yes")
else:
    print("No")
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()
ttt = t[-1]

ss = t.rstrip(ttt)


if len(ttt) == 1 and ss == s:
    print("Yes")
else:
    print("No")

    

Failing test case input:
a
aa

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
t = input()
ttt = t[-1]

tt = t.rstrip(ttt)
ss = int(len(s))
tttt = t[:ss]


if len(ttt) == 1 and tttt == s:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()

if t[0:len(s) + 1] == s:
    print('Yes')
else:
    print('No')

Failing test case input:
b
be

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
t = input()

if t[0:len(s)] == s and len(t) == len(s)+1:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")
    

Failing test case input:
vrndj
rnflef

Expected output:
No


Actual output:
No
No
No
No
No


Fixed submission (verdict: Accepted):
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")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if S == T[len(S):]:
    print("Yes")
else:
    print("No")


Failing test case input:
b
ba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
T = input()


if (S == T[:len(S)]) and (len(T) == (len(S)+1)):
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if S == T[:-1]:
	print("YES")
else:
	print("NO")

Failing test case input:
e
bb

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[:-1]:
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()

if s == t[0:-1]:
    
    print('Yes')
    
else:
    print('NO')

Failing test case input:
iadtkohc
khobudaiz

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
t = input()
if s == t[:-1]:
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s =input()
t =input()

if s in t and len(t)>len(s):
    print('Yes')
else:
    print('No')

Failing test case input:
a
da

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s =input()
t =input()

if t[0:len(s)]==s and  0<=len(s)<=10 and len(t)==len(s)+1 and s in t:
    
    print('Yes')
else:
    print('No')
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")
  

 


Failing test case input:
a
be

Expected output:
No


Actual output:
a be
No


Fixed submission (verdict: Accepted):
s = input()
t = input()


if (s == t[0:(len(t))-1]) and (len(t) - len(s) == 1):
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s= str(input())
t= str(input())

r= t.replace(s, '')
if len(r)==1:
    print('Yes')
else:
    print('No')

Failing test case input:
d
cd

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s= str(input())
t= str(input())


if len(t)==1 + len(s) and t[0:len(s)]==s:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
if S[:len(S)] == T :
    print('Yes')
else :
    print('No')


Failing test case input:
chokudai
chokudaiz

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
T = input()
if T[:len(S)] == S :
        print('Yes')
else :
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if len(T) <= 10:
	print("Yes")
else:
	print("No")

Failing test case input:
`
bb

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[:-1]:
	print("Yes")
else:
	print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
t=input()
z= t[0:len(t)-1]
p = t[1:len(t)]
if(s==z or s==p):
    print("Yes")
else :
    print("No")

Failing test case input:
d
cd

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=input()
t=input()
z= t[0:len(t)-1]
if(s==z):
    print("Yes")
else :
    print("No")

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S = list(input())
T = list(input())
ans = ''.join(S) + T[-1]
print(ans)
if ans == ''.join(T):
  print("Yes")
else:
  print("No")

Failing test case input:
vrndj
snfelf

Expected output:
No


Actual output:
vrndjf
No


Fixed submission (verdict: Accepted):
S = list(input())
T = list(input())
ans = ''.join(S) + T[-1]
if ans == ''.join(T):
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
str1 = input()
str2 = input()

alpha = str2[len(str1):]

if len(alpha) == 1 and alpha.isalpha():
  print("Yes")
else:
  print("No")


Failing test case input:
nsuke
snelee

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
str1 = input()
str2 = input()

same_str = str2[:len(str1)]
alpha = str2[len(str1):]

if same_str == str1 and len(alpha) == 1 and alpha.isalpha():
  print("Yes")
else:
  print("No")
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")

Failing test case input:
a
aa

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
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")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if S == T[0:len(S)]:
  print('YES')
else:
  print('NO')

Failing test case input:
dhakftob
ibphtdicz

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[0:len(S)]:
  print('Yes')
else:
  print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
if S + 'z' == T :
    print('Yes')
else :
    print('No')

Failing test case input:
b
be

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
T = input()
if T.startswith(S) :
    print('Yes')
else :
    print('No')

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S=input()
T=input()
if T[0:len(T)-2]==S[0:len(S)-1]:
    print("Yes")
else:
    print("No")

Failing test case input:
b
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S=input()
T=input()
if T[0:len(T)-1]==S[0:len(S)]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
text = (T).strip(S)
if len(text) == 1:
    print("Yes")
else:
    print("No")


Failing test case input:
a
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
S = input()
T = input()
text = (T[:-1])
if (text) == (S):
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")

Failing test case input:
dgakftob
ibphtdicz

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
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")

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
S=list(input())
T=list(input())
if S==T[:-2]:
  print("Yes")
else:
  print('No')

Failing test case input:
c
cd

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
t = input()
if s == t[:-1]:
  print('Yes')
else:
  print('No')
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
T=input()
A=S+T
if len(T)!=1:
  print("No")
elif len(S)+len(T)<= 0 or len(S)+len(T)>= 11:
  print("No")
elif  A.isalpha() and A.islower():
  print("Yes")
else:
  print("No")

Failing test case input:
a
ab

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
S=input()
T=input()
A=S+T
if T[:-1]!= S:
  print("No")
elif len(T)-len(S)!=1:
  print("No")
elif len(S)<= 0 or len(S)>= 11:
  print("No")
elif  A.isalpha() and A.islower():
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
t=input()
tt=t.replace(s,"a")
if len(tt)==2:
  print("Yes")
else:
  print("No")

Failing test case input:
d
bc

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s=list(input())
t=list(input())
del t[-1]
if s==t:
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
b = input()
if a[:-1] == b[:-2] and len(a) + 1 == len(b):
  print("Yes")
else:
  print("No")

Failing test case input:
b
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
a = input()
b = input()
if a == b[:-1] and len(a) + 1 == len(b):
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


print(['No', 'Yes'][input() + "z" == input()])



Failing test case input:
c
cd

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):


print(['No', 'Yes'][input() == input()[:-1]])

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()

if S == T[:len(T)-1] and len(S) == len(T) - 1:
    print("Yse")
else:
    print("No")


Failing test case input:
c
cd

Expected output:
Yes


Actual output:
Yse


Fixed submission (verdict: Accepted):
S = input()
T = input()

if S == T[:len(T)-1] and len(S) == len(T) - 1 and str.islower(T) == True:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
S = input()
T = input()

if S in T:
  T = T.replace(S,"")
  if len(T) == 1:
    print("Yes")
    sys.exit()
    
  else:
    print("No")
    sys.exit()

print("No")

Failing test case input:
a
da

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import sys
S = input()
T = input()



if S in T :
  text = T.replace(S,"",1)
  if text == T[len(T)-1]:
    if len(text) == 1:
      print("Yes")
      sys.exit()
  else:
    print("No")
    sys.exit()

print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s_list = input()
t_list = input()

n = len(s_list)

for i in range(0, n-1):
    if s_list[i] != t_list[i]:
        print('No')
        exit(0)
print('Yes')

Failing test case input:
d
ab

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s_list = input()
t_list = input()

n = len(s_list)

if s_list == t_list[:-1]:
    print('Yes')
else:
    print('No')
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
b = input()
if b.startswith(a) and len(a) == (len(b) -1):
    print("YES")
else:
    print("NO")

Failing test case input:
botdkafi
ihpbtdbhz

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
a = input()
b = input()
if b.startswith(a) and len(a) == (len(b) -1):
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = list(input())
T = list(input())
for i in range(len(S)):
  if (S[i] != T[i]):
    print("No")
    break
  else:
    continue
  print("Yes")

Failing test case input:
b
ba

Expected output:
Yes


Actual output:

Fixed submission (verdict: Accepted):
S = list(input())
T = list(input())
count = 0
for i in range(len(S)):
  if S[i] != T[i]:
    count += 1
    break

if count == 0:
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    S = input()
    T = input()
    if len(S)==len(T) - 1 and S[0:len(S)] == T[0:len(T)-1]:
        print("OK")
    else:
        print("NG")


if __name__=="__main__":
    main()


Failing test case input:
a
ba

Expected output:
No


Actual output:
NG


Fixed submission (verdict: Accepted):
def main():
    S = input()
    T = input()
    if S == T[0:-1]:
        print("Yes")
    else:
        print("No")


if __name__=="__main__":
    main()

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s,t = [str(input()) for _ in range(2)]
if s[:-1] == t:
	print('Yes')
else:
	print('No')

Failing test case input:
a
ac

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
t,s = [str(input()) for _ in range(2)]
if s[:-1] == t:
	print('Yes')
else:
	print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = input()
b = input()
if a==b[:len(a)-1]:
  print('Yes')
else:
  print('No')

Failing test case input:
b
ba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a = input()
b = input()
if (len(b)>len(a)) and (a==b[:len(a)]):
  print('Yes')
else:
  print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
s2 = input()

s3=s2[:-1]
print(s3)
if len(s)+1 == len(s2) and s in s3:
    print('Yes')
else:
    print('No')

Failing test case input:
snuke
snekee

Expected output:
No

Actual output:
sneke
No


Fixed submission (verdict: Accepted):
s = input()
s2 = input()

s3=s2[:-1]

if len(s)+1 == len(s2) and s == s3:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S = input()
T = input()
t = len(T)
T = T.strip(T[t-1])
if S == T:
  print('Yes')
else:
  print('No')

Failing test case input:
a
aa

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
S = input()
T = input()
t = len(T)
T = T[0:t-1]
if T == S:
  print('Yes')
else:
  print('No')
Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()
if s == t[0:-1]:
    print('Yes')
else:
    print('NO')

Failing test case input:
botfkadh
zibdthpbi

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
s = input()
t = input()
if s == t[:-1]:
  print("Yes")
else:
  print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()
for i in range(len(s)):
    if s[i] != t[i]:
        print('no')
        break
    elif i == len(s)-1:
        print('yes')


Failing test case input:
urndk
snelef

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
s = input()
t = input()
for i in range(len(s)):
    if s[i] != t[i]:
        print('No')
        break
    elif i == len(s)-1:
        print('Yes')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
daude = input()
daude1 = input()
if daude == daude[:-1]:
  print('Yes')
else:
  print('No')

Failing test case input:
c
cd

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
daude1 = input()
daude2 = input()
if daude1 == daude2[:-1]:
    print('Yes')
else:
    print('No')

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
t = input()

print(s)
print(t[0:-1])

if s == t[0:-1]:
    print("Yes")
else:
    print("No")

Failing test case input:
a
da

Expected output:
No


Actual output:
a
d
No


Fixed submission (verdict: Accepted):
s = input()
t = input()

if s == t[0:-1]:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s=input()
t=input()
print("yes" if s in t else "no")

Failing test case input:
a
ac

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
s=input()
t=input()
print("Yes" if s==t[:-1] else "No")

Problem: p02681
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s1 = input()
s2 = input()
c = s2.count(s1)
if c>0 and len(s2) == len(s1)+1:
    print("Yes")
else:
    print("No")

Failing test case input:
a
ea

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s1 = input()
s2 = input()
if s2[0:len(s2)-1]==s1 and len(s2) == len(s1)+1:
    print("Yes")
else:
    print("No")

Problem: p02681
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


s = str(input())
t = str(input())

if s == t[0:-2]:
    print('Yes')
else:
    print('No')

Failing test case input:
b
be

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):


s = str(input())
t = str(input())

if s == t[0:-1]:
    print('Yes')
else:
    print('No')