t=input()
for i in xrange(t):
a,b=raw_input()
if b in a:
print “1”
else:
print “0”
guys i wrote this code to check if b is substring of a;;;;; it is giving me runtime error(NZEC)…
plzz help…
thnx… in advance
t=input()
for i in xrange(t):
a,b=raw_input()
if b in a:
print “1”
else:
print “0”
guys i wrote this code to check if b is substring of a;;;;; it is giving me runtime error(NZEC)…
plzz help…
thnx… in advance
t=input()
for i in range(t):
a,b=input()
if b in a:
print(“1”)
else:
print(“0”)